Get Serial Number of Main Board from command line

Posted Sunday, 21 October 2007 by Michael Khanin
Digg!

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

NOTE: For more information about Wmic.exe see Windows Management Instrumentation
 





Reddit!Del.icio.us!Google!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites! title=
 

Add comment

You have no rights to add a new comment. May be you need to register on the site.