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 SharePoint specialist currently working as a Senior Consultant for CapGemini in Mumbai, India. She has more than 9 years of experience in application development, design, maintenance, administration and is continuously working with improving her skills and keeping them up to date. As a developer, project leader and SharePoint Business Analyst, she has been an extensive user of Visual Studio and Team Foundation Server throughout her career. Dipti is very passionate about music, sports, and arts and loves to spend her free time learning new things, socializing with friends and family, cooking, exercising and singing.

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