Source language: Translate to:

Retrieving BIOS serial number and other System information

Questions or information that don't quite fit anywhere else

Moderator: Neosoft Support

Retrieving BIOS serial number and other System information

Postby Rodrigo » Mon Jun 16, 2014 10:40 pm

Hi everyone.

I share with you a simple way to get system information using "WMIC" (windows management instrumentation command-line).

Obviously, it is very likely that these tricks are known, but may serve to Someone.
Sorry my poor English :oops:

You just need to create a bat or cmd file with the appropriate lines.

The following example shows how to get the BIOS serial number.

1) Create a bat file (eg biossn.bat) and write the following lines:

Code: Select all
@echo off
wmic /Output:"C:\Dir\nsbios.dat" bios get serialnumber
type "C:\Dir\nsbios.dat" > "C:\Dir\nsbios.txt"
exit


Notes:
a) The path and file name in quotation marks may be others.
b) Because "wmic" writes the result file (nsbios.dat) using the UCS-2 Little Endian encoding, we could not read the file using NeoBook. Then simply use "Type" and ">" to read and then write using the UTF-8 encoding.

2) Now just simply use "RUN":
Code: Select all
Run "C:\Dir\nsbios.txt" "" "RunOnce+Wait+LoadComplete+Hidden" "" ""


The file "nsbios.txt" contain the BIOS serial number ready to read and use with NeoBook.

It is much more information that can be obtained in this way. And, not only get information, also take action. And all without plugins!. :lol:

If you know something I do not know about this information, add it to improve it. :roll:
Last edited by Rodrigo on Tue Jun 17, 2014 7:48 am, edited 1 time in total.
After the game, the nerd and the ignorant will return to the same box
User avatar
Rodrigo
 
Posts: 29
Joined: Wed May 30, 2012 6:23 am
Location: Chile

Re: Retrieving BIOS serial number and other System informati

Postby Wrangler » Tue Jun 17, 2014 7:37 am

Good one, Rodrigo. Thanks!
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1505
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Re: Retrieving BIOS serial number and other System informati

Postby virger » Tue Jun 17, 2014 7:38 am

Muy interesante. Gracias
Recomiendo tambien este link:
http://www.windows-commandline.com/

PURA VIDA
COSTA RICA
EN EL MUNDIAL
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 510
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Retrieving BIOS serial number and other System informati

Postby dpayer » Tue Jun 17, 2014 11:04 am

virger wrote:Muy interesante. Gracias
Recomiendo tambien este link:
http://www.windows-commandline.com/

PURA VIDA
COSTA RICA
EN EL MUNDIAL



Also, one of the most useful command line 'helpers' is the CLIP command that will take the output that would normally write to screen and send it to the clipboard instead. This makes it very easy to search the results of a command line utility for the item you want.

See: http://blogs.msdn.com/b/oldnewthing/arc ... 19908.aspx

David P.
David Payer
Des Moines, Iowa
USA
User avatar
dpayer
 
Posts: 1380
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA


Return to Misc. Questions and Information

Who is online

Users browsing this forum: No registered users and 1 guest

cron