The VBScript Network and Systems Administrator's Cafe:

Windows Management Interface


April 13, 2009  3:18 PM

Finding the owner of a process remotely with VBScript via the Win32_process class

Posted by: Jerry Lees
Administration tools, Functions, System Administration, Systems Administration, VBScript, VBScript Functions, win32_process, Windows Management Interface, WMI

 Recently I had an issue where I needed to find the user running a series of processes on a large number of servers. Initially, it was a long process of logging onto each server then opening task manager and sorting by process name. After about 5 servers, I realized it was going to take hours to...

January 5, 2009  2:03 AM

Retrieve environment variable values from a remote system with WMI

Posted by: Jerry Lees
Environment Variables, PATH variable, Remote management, System Administration, VBScript, Win32_Environment, Windows Management Interface, WMI

Back in October I shared with you a way to retrieve environment variables with a script titled

Bookmark and Share     1 Comment     RSS Feed     Email a friend

January 2, 2009  3:01 AM

Searching the Windows Eventlog for specific events with WMI

Posted by: Jerry Lees
Systems Administration, systems management, VBScript, Win32_NTLogEvent, Windows Management Interface, WMI

On occasion as a systems administrator you have to find the proverbial needle in the haystack with respect to the events in the event logs. You know what I mean, the one event you care about and need to know when it occured as part of your troubleshooting... then throw in that you need to do it in...

March 4, 2008  1:57 AM

Determining properties and methods used in a WMI object for use in a vbscript.

Posted by: Jerry Lees
DataCenter, Development, VBScript, Windows Management Interface, WMI

In this entry we'll take a look at the microsoft documentation for win32_printerdriver and determine how we can determine what values to use to get data once we've created a script to get set of data back from a WMI object...

February 29, 2008  10:30 PM

Using error control in a vbscript to recover from odd errors

Posted by: Jerry Lees
Development, Error control, VBScript, Windows Management Interface

In my last installment,

  Bookmark and Share     1 Comment     RSS Feed     Email a friend

February 29, 2008  2:45 AM

Finding HP Printers using PCL6 Drivers with WMI

Posted by: Jerry Lees
Development, Error control, Networking, Printer Administration, Printers, VBScript, Windows Management Interface

Recently, at my work we had a situation where users were reporting the printer was not printing their documents and/or it was printing very slowly. After digging into the problem, I found: 1. the documents were spooling just fine to the printer 2. the documents were not hanging in the...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: