How to check whether current system is virtual or physical ?


Run below command in power shell and you will get the information of your machine.If its physical then it will prompt the model number else it will display virtual machine platform.

get-wmiobject win32_computersystem | fl model

Happy Running ! 🙂

Dipti Chhatrapati

Dipti Chhatrapati is a passionate and ambitious SharePoint & Office 365 specialist, including technologies that are or will be directly interacting with SharePoint technology stack. She currently holds a position of manager as SharePoint/Office 365 Architect in Capgemini, Mumbai.

Leave a Reply

1 Comment on "How to check whether current system is virtual or physical ?"

Notify of
Sort by:   newest | oldest | most voted

Using CIM and WMI is good 🙂 – See other tricks too

Using Registry Keys:

Note: Get-ItemProperty works from PS 3.0

Get-ItemProperty ‘HKLM:\HARDWARE\DESCRIPTION\System\BIOS’ | Select SystemManufacturer , SystemProductName | fl

Remote Machine
Invoke-Command -ScriptBlock {
Get-ItemProperty ‘HKLM:\HARDWARE\DESCRIPTION\System\BIOS’ | Select SystemManufacturer , SystemProductName | fl} -ComputerName ‘RemoteMachine’

Using WMI
Withoutout pipeline ‘|’

(Get-WmiObject -Class Win32_ComputerSystem).Model

Enjoy PowerShell 🙂

Social Network Integration by Acurax Social Media Branding Company
Visit Us On TwitterVisit Us On FacebookVisit Us On Linkedin