Analysis for windows features

I am trying to see how i can write an analysis that would do a similar powershell wmi query

Get-WmiObject -query “select * from Win32_OptionalFeature where name = ‘SMB1protocol’”

I want to see what machines have SMB1 installed on them

Any sugestions?

You can use WMI in relevance. To learn more about it see here. https://support.bigfix.com/inspectors/WMI%20Objects_Any.html

I think something like this should work

string value of select “* from Win32_OptionalFeature where name = ‘SMB1protocol’” of wmi

I use this in my environment for all installed features on our windows servers. Helpful when planning for a migration such as cloud compute.

###if exists (string values of selects “name from Win32_ServerFeature” of wmi) then (string values of selects “name from Win32_ServerFeature” of wmi) as string else “N/A”

This is great @mbp911! Do you happen to know how to narrow it down to a specific feature?

EDIT: figured it out from the above, derp.