I was playing about with the Dell OMCI this morning (The free extension to WMI that allows you to manage Dell workstations with Powershell and/or vbScript (Choose your weapon!) and found an easy way to figure out where to start.

First run the following one liner.  Yeah the trick is pretty simple.

GET-WMIOBJECT –namespace rootdcimsysman –list | SORT-OBJECT Name

All that does is list the various objects available to you sorted out.  

I never could figure out why there would usually 3 or 4 different names in WMI unless it’s meant to support the CIM standard somehow.   But what I found (like with the regular Windows ones) is there is usually only one name I care about.

In Windows it’s Win32-blahblahblah

In Dell OMCI it’s DCIM-blahblahblah

So if you want to just look for useful Dell stuff in WMI try filtering the list like this

GET-WMIOBJECT –namespace rootdcimsysman –list DCIM* | SORT-OBJECT Name

To find objects alphabetically I just ran the GET-WMIOBJECT against a WHERE-OBJECT.  This showed me all the ones starting with the letter “a”. A smaller filtered list made it easier to play with

GET-WMIOBJECT –namespace rootdcimsysman –list | WHERE { $-.Name –like ‘DCIM-a*’ }

Hmmm with an easier to pick list I started randomly plopping in names to see what they might be (OR you COULD just READ the DOCUMENTATION!)

But this was more fun

GET-WMIOBJECT –namespace rootdcimsysman DCIM-view

GET-WMIOBJECT –namespace rootdcimsysman DCIM-runningos

GET-WMIOBJECT –namespace rootdcimsysman DCIM-AssetWarrantyInformation

Some of them were more interesting on a hardware level like DCIM-Battery which revealed the internal Details of the Dell battery including usage.

GET-WMIOBJECT –namespace rootdcimsysman DCIM-Battery

Don’t forget you can apply –computername to all of these for accessing Remote Dell systems.   Now of course note that if the Dell DCIM is NOT installed, be prepared to catch this error.

GET-WMIOBJECT : Invalid namespace "rootdcimsysman2"

At line:1 char:1
+ GET-WMIOBJECT -Namespace rootdcimsysman DCIM-Battery
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
 

If you get that error, odds are pretty good either the Dell OMCI is not installed or that’s not a Dell you’re asking questions.

Play about with them and see what you discover, and FEEL the POWER of SHELL

Sean
The Energized Tech