If you connect to a remote machine through remote desktop protocol, you might not always know whether that machine is virtual or physical. If you would like to find out whether the machine you have connected to is virtual or physical, there are several ways to go about that.
1. Check System Tray
The quickest method is to check in the system tray, usually you will find an icon for the utilities the manufacturer of the virtualization product, provide to enhance the performance of the virtual machine’s guest operating system. Such as VMware Tools.
Icon for VMware Tools in the system tray.
2. Check Programs and Features in Control Panel
Another method is to check Programs and Features in Control Panel. You will find out if VMware Tools are installed or not.
3. Check System Information
Click Start → Write msinfo32 → press Enter
The System Manufacturer and System Model items will let you know whether the machine is physical or Virtual.4. Use Powershell or Command Prompt
In Powershell you can use the following cmdlet get-wmiobject win32_computersystem | fl model
And in the Command Prompt, use this command systeminfo /s %computername% | findstr /c:"Model:" /c:"Host Name" /c:"OS Name"
5. Check All Servers in a Domain
Sometimes you might want to know this information about all servers in a domain, so how do you go about that? Simple, use the following Powershell script
import-module activedirectoryget-adcomputer -filter {operatingsystem -like "windows server*"} | select-object name | export-csv .\computers.txt -notypeinformation -encoding UTF8(Get-Content .\computers.txt) | % {$_ -replace '"', ""} | out-file -FilePath .\computers.txt -force -encoding ascii$computers= get-content .\computers.txt | select -Skip 1Foreach($computer in $computers){systeminfo /s $computer | findstr /c:"Model:" /c:"Host Name" /c:"OS Name" | out-file -FilePath .\VirPhys.txt -append }
You will get an output like this in a file called VirPhys.txt (located in the same location as you ran the script)
As you can see, Server01, Server03 and Server05 are virtual machines, while Server02 and Server04 are physical ones.
(Visited 20,089 time, 6 visit today)