the first method above uses the wmic command to retrieve the system serial number. if you are not running this command from an elevated command prompt (e.g. administrator account), you may receive a prompt to enter the password. if that is the case, type the password and press enter. the serial number is retrieved.
the second method above uses a vbs script. the msgbox command displays the serial number of the computer. the set colsmbios = objwmiservice.execquery (select * from win32_systemenclosure) command retrieves a list of all the smbios objects. each smbios object is represented by the objsmbios collection. the for each loop enumerates the collection of objects and displays the serial number of the local computer, if any.
the archive in zip file contains a vbs script to retrieve the system serial number from the wmic command and a vbs script to retrieve the serial number from the ms_com command. you can use the vbs scripts to retrieve the serial number of your computer.
the best and most reliable way to retrieve the serial number is to use an automated tool. this has been proven time and again by quite a few people, and we at licensecrawler are no exception. just hit the button below to download the free licensecrawler serial number extractor.
licensecrawler scans the windows registry to get your serial number, all you need to do is save the results. you can choose from three different export formats. the first one is best for exporting to a spreadsheet, the next best for exporting to another program, and the third one is the best for exporting to a database.