Get Serial Number using command line and PowerShell

System’s serial number information is stored in WMI. The WMI class is Win32_Bios and there are different ways to query it. We are going to discuss two methods:

Command Line

Open the command prompt and type the following command:

wmic bios get serialnumber
If you want query a remote system, add the switch /NODE:SERVERNAME, where SERVERNAME is the name of the remote system you want to query.
wmic /node:RemoteSVR01 bios get serialnumber
In above example, the command queries the remote system with name ‘RemoteSvr01’.


For local system:
Get-WmiObject -Class Win32_Bios



To query a remote system named ‘RemoteSvr01’:

Get-WmiObject -Class Win32_Bios -ComputerName RemoteSvr01