Thursday, August 5, 2021

System Installation: Script to display serial number on remote machine

Author: Rod Trent
Platform: Windows NT, Windows 2000
Type: WSH, VBScript

DESCRIPTION: RemoteSN takes your input (computer name), connects to the remote WMI namespace, and then returns the computer’s serial number. You can get the local serial number by inputting “localhost” in the prompt.  To get a serial number from a computer, the computer must have WMI 1.5 installed and be compatible with SMBIOS version 2.1. Save this file as a .VBS and run with WScript.  If the computer name is entered incorrectly, or cannot be found on the network, an error message will indicate that the remote server does not exist.

Download the script.
Scroll down to view the script.


SCRIPT:

ComputerName = InputBox(“Enter the name of the computer you wish to query”) winmgmt1 = “winmgmts:{impersonationLevel=impersonate}!//”& ComputerName &”” ‘WScript.Echo winmgmt1 Set SNSet = GetObject( winmgmt1 ).InstancesOf (“Win32_BIOS”) for each SN in SNSet MsgBox “The serial number for the specified computer is: ” & SN.SerialNumber Next


Disclaimer: We hope that the information in these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided “as -is”, without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. I shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Similar articles

Latest Articles

Data Belongs in the...

In 2012, IBM made an oft-quoted claim that 90 percent of the world's data has been created in the last two years. They grossly...

Google Cloud Rolling Out...

WASHINGTON, D.C. — Google Cloud is helping the government sector with zero trust. The set of services are designed to help U.S. federal, state, and...

CFOs Committing to Digital...

STAMFORD, Conn. — More CFOs are planning to increase their spending on digital than any other part of the business in 2021. Eighty-two percent of...

SAP and IBM Partnering...

WALLDORF, Germany and ARMONK, N.Y. — SAP and IBM are working together to help financial institutions accelerate cloud adoptions and “modernize operations.” SAP plans to...