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
Recommended WMI Filter to Exclude Hyper-V Hosts
If you want to target all servers except the actual Hyper-V Host, checking for the hypervisor service is often more reliable than 'HypervisorPresent'. You can try a WMI query that checks for the absence of the Hyper-V service or specific hardware markers.
Try this query to target machines that are NOT Hyper-V hosts:
SELECT * FROM Win32_Service WHERE Name = 'hvboot' AND State <> 'Running'
Alternatively, you can filter by the computer model if you are mostly using virtual machines:
SELECT * FROM Win32_ComputerSystem WHERE NOT Model LIKE '%Virtual%'
However, for a more precise exclusion of the Hyper-V role, checking the Win32_OptionalFeature for the 'Microsoft-Hyper-V' status and ensuring it is not 'Enabled' is the way to go.
Hope this helps you filter out the hosts effectively!