Windows – What scripting language do you use for your logon scripts in your Windows enviroment

batch-filelogon-scriptspowershellvbscriptwindows

I wonder what scripting languages is most used as logon scripts these days. Is people still hacking away in batch-file files or vbscripts, or do you use PowerShell or something completely different?

Personally, I have pretty good experience with vbscript, it works across almost all Windows versions, but PowerShell looks sweet and might be an option going forward.

So, what is your preferred scripting language for logon scripts, and why? And if you can, please share some of the brilliant things you do in your logon scripts.

Regards, Egil.

Best Answer

Although we use powershell on our servers, we use vbscript on the clients to login. VBscript is installed by default and we use it instead of CMD batch files because of the access to wmi and specifically we use it to install all the appropriate printers.