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 root\dcim\sysman –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 root\dcim\sysman –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 root\dcim\sysman –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 root\dcim\sysman DCIM_view

GET-WMIOBJECT –namespace root\dcim\sysman DCIM_runningos

GET-WMIOBJECT –namespace root\dcim\sysman 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 root\dcim\sysman 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 "root\dcim\sysman2"

At line:1 char:1
+ GET-WMIOBJECT -Namespace root\dcim\sysman 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

Advertisements