Coding examples, tips, and more…

VBScript Icon

Converting WMI Dates

Converts a WMI Date Time value to a standard date time value. Visual Basic ‘Here, computer is the computer name to convert a WMI date. Computer = “.” Set objDT = CreateObject(“WbemScripting.SWbemDateTime”) Set objWMI = GetObject(“winmgmts:” & Computer & “rootcimv2”) Set objOS = objWMI.ExecQuery(“Select LocalDateTime ” & _ “from Win32_OperatingSystem”)...

VBScript Icon

Connecting to a SQL Server

Makes a connection to the specified SQL server.

VBScript Icon

Adding an MMC Snapin

Opens the MMC console and then loads the specified snapin.

VBScript Icon

Activating Windows

Activates Windows on the computer name you specify.

Script detects infected files

In May of 2000 I was consulting for the McGowan Consulting Group (a.k.a. Strategic Business Systems) as one of two network administrators for Sikorsky Aircraft – Comanche Project.  I was still recovering from the work involved with preparring for Y2K and looking forward to see the movie “Gladiator” when I was forced...

Error Code / Error Levels

I hate when running a schell script or command, it errors, and an error code with no description is returned.  How am I supposed to know what error code “14080” means?  The info below should help out if you find yourself in the same situation. How to translate error codes...

1 2