Build Collections Based on Chassis
This is helpful when needing to differentiate between VM and physical server, or between desktop and laptop. First, here’s the WMI command to see the values you need:
wmic path win32_systemenclosure get chassistypes
Generally, a VM will either return 1 or 3, but I encourage you to check your environment first. For a full list, see this MSDN article: https://msdn.microsoft.com/en-us/library/windows/desktop/aa394474(v=vs.85).aspx.
Now, create a new device collection with a query membership rule. Here are the options you need for virtual:
And physical: