Menu
- Powershell Get Serial Number Remote Computer Programmer
- Powershell Get Serial Number Remote Computers
Since I regularly need the HP Product Code and the Serial Number for our Workstations I thought why not read them with Powershell. On Localhost: Get-WmiObject win32bios Select-Object SerialNumber.this works like a charm. But, if I want to get the Serial Number for a remote computer I always get the Serial Number of the localhost-computer. In situations where a remote systems serial is required, they do nothing but reaching that machine physically. Enough doing hard work and be smart, guys; here is a small powershell code which helps you to get serial number of local or remote machine without moving your feet. PS C: (Get-WmiObject -computer COMP-A -cl win32BIOS).SerialNumber.
There are a lot of posts about pulling data from a file to do actions against computers/users. While this is valuable, I prefer to do dynamic capturing of computer and user objects directly from my Active Directory.
This is a simple script which will capture a list of computers from Active Directory and subsequently pull the serial number using the Get-WMIObject CmdLet using the Win32_BIOS class.
This script will attach to a specified computer over the network and grab some information about it, including the serial number of the system and monitors attached to it. Kudos to Michael Baird and Denny Mansart for all that EDID code. The big deal is the monitor serial numbers, because that is a tricky piece of information to get. ← Powershell Tip #79: Search a user located in another domain Powershell Tip #81: Count files and folders → 2 thoughts on “ Powershell Tip #80: Find MAC address on a remote computer ” Pingback: Powershell Tip #79: Search a user located in another domain Powershell Guru. Tip: You can get the UUID (Universally Unique Identifier) of one local or remote computer. PowerShell # Local (Get-WmiObject -Class Win32ComputerSystemProduct).UUID (Get-CimInstance -Class Win32ComputerSystemProduct).UUID # Remote (Get-WmiObject -Class Win32ComputerSystemProduct -ComputerName SERVER1).UUID (Get-CimInstance -Class Win32.
The neat addition over many other scripts I have used is the addition of the -ErrorAction SilentlyContinue option which prevents offline computers from sending error information in the output. Add some error handling and you now have a list of computers which are offline or inaccessible.
As with many of the scripts I will show you, you need to install ActiveRoles CmdLets from Quest Software (follow the link in the Gist)
Here’s the code: http://gist.github.com/492475
List of serial numbers from Active Directory computers
Here is simple command line that works on Windows XP/VISTA/Windows 7, if you are in need to get the serial number aka TAG from remote computer on your network.
- Go to START / RUN and type CMD click OK
- now type in this command :
- wmic /user:Administrator /node:Computername bios get serialnumber
- Once you press ENTER, you will be prompted for your Administrator password
- Enter the Administrator’s password, press ENTER and you will receive the serial number aka TAG from the remote computer
UPDATE (2017):
Noted that this does not work very well on current Windows 10 machines. However here is easy replacement to achieve same goal with PowerShell :-):
Powershell Get Serial Number Remote Computer Programmer
For Locale computer:
For Remote computer:
This will provide you with detail information about BIOS on the local/remote machine:
- SMBIOSVersion
- Manufacturer
- Name
- Serial Number
- Version
Have fun !