WMI Filtering, Targeting, Usage & Utilities
WMI filtering is a very neat tool. I personally find its syntax a little complicated. Recently I came across with this 2 line article. How to WMI Filter with computer name. Here is an example. select * from Win32_ComputerSystem where Name = ‘Computer Name’ If you are looking for more WMI Filter examples, this article has it all… http://blog.enx1.com/2011/07/03/wmi-gpo-filters-for-operating-system-types/ Here is another example of how to target Windows 7 by its architecture type (X86 or X64). This is great while deploying applications through Group Policy. Not all the applications are compatible both 32 and 64 bit, so you can target only 32bit or only 64bit computers with the help of this WMI query. Here is how it looks like to target only Windows 7 X86 Systems select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND NOT OSArchitecture = "64-bit" Targeting Windows 7 X64 Systems select * from Win32_Operatin...