Detect Microsoft Virtual PC Virtual Machine

Posted on January 9, 2021 at 1:47 pm

How to detect Virtual PC Virtual Machine via WMIC:

wmic baseboard get manufacturer, product /format:list

The output is like this:

Manufacturer=Microsoft Corporation
Product=Virtual Machine

Another way is to query “csproduct” like this:

wmic csproduct get vendor, name /format:list

The output is like this:

Name=Virtual Machine
Vendor=Microsoft Corporation

Alternatively, you can query Windows Registry:

SystemProductName (REG_SZ) = Virtual Machine

This works also for Hyper-V VMs.

Receive updates via email

Other Posts

Updated Posts