WMI: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Some WMI filters {| class="wikitable" |- ! Header text !! Header text !! Header text |- | Example || Get all Windows Desktop OS higher then Win7 || select * from Win32_Ope...") (change visibility) |
No edit summary (change visibility) |
||
Line 6: | Line 6: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Header text !! Header text !! Header text | ! Header text !! Header text !! Header text !! References | ||
|- | |- | ||
| Example || Get all Windows Desktop OS higher then Win7 || select * from Win32_OperatingSystem where (Version like "10.%" or Version >="6.1") and ProductType = "1" | | Example || Get all Windows Desktop OS higher then Win7 || select * from Win32_OperatingSystem where (Version like "10.%" or Version >="6.1") and ProductType = "1" || | ||
|- | |- | ||
| Example || | | Example || Select all computer not Domain Controller || SELECT * FROM Win32_ComputerSystem Where DomainRole <> 4 AND DomainRole <> 5 || https://technet.microsoft.com/en-us/library/ee198796.aspx | ||
|- | |- | ||
| Example || Example || Example | | Example || Example || Example || | ||
|} | |} | ||
Manually test WMI | |||
wbemtest | |||
*open | |||
*connect | |||
*query | |||
*if result == blank, query failed, if result holds hostname, query succedded |
Revision as of 15:34, 25 January 2016
Some WMI filters
Header text | Header text | Header text | References |
---|---|---|---|
Example | Get all Windows Desktop OS higher then Win7 | select * from Win32_OperatingSystem where (Version like "10.%" or Version >="6.1") and ProductType = "1" | |
Example | Select all computer not Domain Controller | SELECT * FROM Win32_ComputerSystem Where DomainRole <> 4 AND DomainRole <> 5 | https://technet.microsoft.com/en-us/library/ee198796.aspx |
Example | Example | Example |
Manually test WMI
wbemtest
- open
- connect
- query
- if result == blank, query failed, if result holds hostname, query succedded