Network Administrator Knowledgebase

Oct 21 2007   2:36AM GMT

Get Serial Number of Main Board from Command Line

Michael Khanin Michael Khanin Profile: Michael Khanin

Tags:
Hardware

Windows XP and Windows Server 2003 contain the WMI (Windows Management Instrumentation) Wmic.exe command-line utility. By using Wmic.exe we can get a lot of information about computer (server).

To display the local computer name and serial number of Main Board I’ve created a very simple script, SerNum.bat. SerNum.bat contains:

@echo off
Setlocal
For /F %%a in (‘wmic baseboard GET SerialNumber /value^|find “SerialNumber”‘) do Set %%a
@echo %Computername% – %SerialNumber%
endlocal

On my desktop, the above script displays:

PELEKAN-XP1 – VF0SA75A0SK

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: