Forum Discussion
WMI Filter for non-Hyper-V Host
- Feb 23, 2026
Thank you all for your reply.
Unfortunately the WMI Filter Editor refused to accept my queries when I put in NOT EXISTS so that didn't pan out. I ended up doing 2 checks, one for HypervisorPresent = False, that should grab the Physical servers that are not Hyper-V Hosts then I look at the Manufacturer to make sure it's not physical. From my testing today, it did apply to all VMs and also Physical servers that are not Hypervisors.
Thanks again and have a great day.
Pierre
Hyper‑V hosts always have the Hyper‑V role installed, which means the Hyper‑V virtualization service is present on the host OS.
The simplest and most stable WMI filter is:
Apply to all servers where the Hyper‑V role is NOT installed
SELECT * FROM Win32_OperatingSystem
WHERE ProductType = 3
AND NOT EXISTS (
SELECT * FROM Win32_ServerFeature WHERE ID = 63
)