hello
Google
Welcome to Carpe Diem: Flaphead@Home Sign in | Join | Help

Carpe Diem: Flaphead.com

Seize the Day

News


  • Add to Technorati Favorites <script type="text/javascript" src="http://technorati.com/embed/3ni3q36ikc.js"> </script>
    This information is provided "AS IS" with no warranties, and confers no rights. Also some of the information contains my views and thoughts.
    <script src="http://widgets.technorati.com/t.js" type="text/javascript" charset="UTF-8"></script>

    Add Me! - Search Engine Optimization

    I heart FeedBurner

WMIC

I am playing virtual tennis with Shawn today and he scored his first point with this (the game is at 15-40)

In the past I have used ScriptomaticV2 or wbemtest to test WMI or get vbscript to dump WMI data.  Shawn showed me WMIC and I am very impressed.  It's not as good as using Windows PowerShell, but it is good.

So if you using a Windows XP, Vista or Windows 2003 you can run WMIC at the command line.

By default it will connect to root\CIMv2 and your can use /? to list all the options you have.  It really is quite nice, but the commands are a bit of a pain to work out.

So typing process is the same as PATH win32_process

What I have not been able to work out yet is how to access root\MicrosoftExchangeV2 from WMIC shell.

It's simple if you use the WMIC command line.  If you want to know the Exchange_QueueData you just run

WMIC /NAMESPACE:\\root\MicrosoftExchangeV2 path Exchange_Queue

Kewl ... enjoy!

 

Technorati tags: , , ,
Posted: 27 March 2007 12:57 by Paul Flaherty

Comments

Sebastianos said:

Nice

# April 12, 2007 02:24
New Comments to this post are disabled