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 »
Posts Categorized: VBScript
VBScript Date Function format problem on Windows XP SP3
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
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 »
How To: Search Active Directory for Computers using VBScript
Here is a basic script to search Active Directory of your local domain for all computers (Can be set for Clients or Servers) and then save the list in a specified file. Its a bit basic so watch this space for an updated version later.
How To: List all unused printer drivers on a print server using VBScript
Quite a handy little script to run every now and again to check for unused printer drivers on a Windows Print Server, actually can run on any version but useful to run on a Print Server so you can remove old and unused printer drivers. Recently ran this on one of my Windows Server 2003… Read more »