Do neat tricks with WMI from the DOS prompt.

August 28, 2008 at 9:40 am (windows) (, )

In my System Administrator role, I am always looking for ways to make my job easier.  Often I can make my job easier by finding ways to be more efficient.  One of the the best ways to become more efficient is by writting scripts to automate tasks for you….scripts can be like little robots that do work for you.  However, sometimes the task you are trying to do doesn’t need a whole script because it’s something small.  This is where WMI can be really helpful.

We all know that Windows is very high maintenance.  Many tasks related to servicing users’s workstations often requires making a remote desktop connection or physically walking over to their desk.  However, much of this tedious work can be conducted right from your workstation more efficiently by using WMI.

Most articles on the internet discussing WMI that I’ve seen are talking about utilizing WMI via VB script.  I’ve found that usually, I do not need a whole script…rather I just need to remotely launch an application or view all installed updates, etc.  Quick actions like those can be done without writting any scripts even by using WMIC.  WMIC is that WMI console for the DOS prompt.

Here is a good article that demonstrates some basic uses and should get you on a good start using WMI in daily tasks:

http://blogs.technet.com/askperf/archive/2008/04/18/wmic-leveraging-the-power-of-wmi.aspx

Advertisements

1 Comment

  1. Dinky Doo said,

    2012: WMIC stinks, sucks and is a crap tool. It does NOT produce a FULL list of ALL Microsoft KB patches installed. Period.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: