Kyle Posted October 11, 2006 Posted October 11, 2006 I was just wondering what you all use/prefer to use for your log on scripts? Do you use .vbs, .bat, cmd etc? DO you use a mixture or do you stick to one file type and if so why? After visiting a couple of our primary schools i noticed they all use different, (depending on who set them up)
DMcCoy Posted October 11, 2006 Posted October 11, 2006 I used to use cmd, everything is vbs now though
GrumbleDook Posted October 11, 2006 Posted October 11, 2006 vbs here too (apart from me ... but I like .bat files)
wesleyw Posted October 12, 2006 Posted October 12, 2006 VBS, bat and EXE here depending on need. I write quite a few progs to run at login/logoff and startup/shutdown so I have an audit trail of every PC when they are on or off and when pupils and staff login and logout. Wes
Geoff Posted October 12, 2006 Posted October 12, 2006 Whatevers easiest. eg, drive mapping is a .cmd but printer mapping is a .vbs
ChrisH Posted October 12, 2006 Posted October 12, 2006 VBS and a batch script. Depends what it needs. I am not going to write the extra three lines of code in VB if a simple batch script will do it in one line.
webman Posted October 12, 2006 Posted October 12, 2006 RM CC3 does it all for us so we don't have to change any.
ajbritton Posted October 12, 2006 Posted October 12, 2006 Whatever seems easiest at the time. Mostly .VBS with a smattering of .CMD and a hint of compiled .AU3
NetworkGeezer Posted October 12, 2006 Posted October 12, 2006 @AJBritton Hmmm I wonder about the compiled AutoIT scripts though. Doesn't this require both the interpreter and script to extracted from the EXE and then load and finally executed. Wouldn't this slow down the logons or at least mean that you wouldn't have a guranteed time line? @everyone else VBS has some nice stuff in it but it feels slightly sluggish compared to KiX even with overhead of having to load the interpreter. Yeah I know VBS is builtin to windows so no problem about deployment, especailly as KiX tends to have more version changes.
Gatt Posted October 12, 2006 Posted October 12, 2006 KiXtart scripts for most stuff and is used to call. Batch files for BGInfo Wallpapers VBS for Printers & Renaming Mapped Drives
ajbritton Posted October 12, 2006 Posted October 12, 2006 @AJBritton Hmmm I wonder about the compiled AutoIT scripts though. Doesn't this require both the interpreter and script to extracted from the EXE and then load and finally executed. Wouldn't this slow down the logons or at least mean that you wouldn't have a guranteed time line? Have to say that I've never noticed a delay when executing a compiled AutoIT script. Most logon time is spent processing group policy anyway. Whatever scripting language you use, the interpreter will have to load and execute. I tend to use AutoIT when I need a user interface or to do automation. In these cases, absolute speed is not really a concern.
plexer Posted October 12, 2006 Posted October 12, 2006 batch for logon scripts that map network drives at the moment. vbs for printers and tweaking other settings. Ben
kingswood Posted October 13, 2006 Posted October 13, 2006 batch for logon scripts that map network drives at the moment. vbs for printers and tweaking other settings. Ben Same here. But I am learning VBScript and other things at the moment and might change things in the future at some point. Traditionally I have loved batch scripts- but my HND course has moved us away from "easier" to "bloody learning curve"
pete Posted October 13, 2006 Posted October 13, 2006 Batch for drives, vbs for printers and WMI queries. Stuff gets prototyped in batch scripts usually. A few of my scripts are in perl, since scriptomatic can export to perl (and python), and I can then get a (linux) monitoring box to run the scripts against workstations.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now