Group By WMI Class

(imported topic written by Steve91)

Hi

Is it possible to check if a particular WMI class exists?

I’d like to group computers by checking if the MSFC_FCAdapterHBAAttributes class exists, this is under root\wmi

querying objects under it doesn’t help because if it doesn’t exist the relevance errors

Cheers

P.S. Scrap this they group anyway and the erroring ones just don’t group

(imported comment written by admccray91)

Steve,

We have done something similar in our environment. What I have done to accomplish this was to create a managed property for what I was looking to group for. For example:

Property:

Dell Wake One Lan Enabled in BIOS

Relevance:

if (exists wmi “root\dellomci”) then ((if ((string value of (selects “WakeupOnLAN from Dell_SMBIOSSettings” of wmi “root/dellomci”)) != “3”) then true ELSE False) as string) else “N/A”

Report:

1 Day

Once that property is created, then create an automatic group based on the retrieve property and value For example:

Group Name:

WOL Enabled

Property:

Dell Wake One Lan Enabled in BIOS

Operator:

contains

Value:

True

I hope this helps.

Adrian McCray

Network Security Engineer

Hillsborough Community College