How to import classes in VBScript

Posted by & filed under Programming, VBScript.

I tend to write VBScripts as object orientated code and have some Classes containing methods that I commonly use (reuse, reuse, reuse!), (eg Ping a hostname, get the operating system version, amongst others) but was always stuck on an easy way to import these classes into other scripts to make use of them, like many… Read more »

VBScript Date Function format problem on Windows XP SP3

Posted by & filed under Programming, VBScript.

Currently testing Windows XP SP3 before the rollout to a couple of thousand computers, one of the more bizarre and confusing issues I found was that some VBScripts didn’t work quite right; odd values returned here and there. Eventually tracked it down to the formating of dates using the Date function – could this be… Read more »

How to: Add a printer connection for every user

Posted by & filed under Programming, VBScript.

Aim: To add a printer connection to eg. \MyServer\MySharedPrinter for every user on every PC on your network. Many companies have a corporate printer everyone has access to so therefore why get them to do it themselves when you can automate this and forget about it. Solution: In the past logon scripts have been quite… Read more »