Your company's ad could live here and reach over 50,000 people a month!

Share This Post

PowerShell

Getting the Computer Serial Number Using PowerShell and WMI

Getting the Computer Serial Number Using PowerShell and WMI

If you want to get the serial number of a computer, either locally or remotely, use the following in a PowerShell CMD window.

To get the local computer serial number:

get-wmiobject -Class win32_bios | select PSComputerName,SerialNumber

To get the serial number of a remote computer:

get-wmiobject -ComputerName -Class win32_bios | select PSComputerName,SerialNumber

To interact with remote computers, make sure to enable PowerShell Remoting.

 


Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

IT/Dev Connections

Share This Post

Leave a Reply