Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help for system id!!!!!

Status
Not open for further replies.

itteck

Programmer
Oct 20, 2003
9
IN
hi,
i wanted to know how can i detect the system id or motherboard id through a vb program source, which would return a unique id for every system.....
can any body help with the source code for it,

thanx!
-itteck-
 
This may or may not do what you want:

Code:
strCOmputer = "."
Set oWMI = GetObject("winmgmts:" & "{impersonationlevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colBIOS = oWMI.ExecQuery("SELECT * FROM Win32_SystemEnclosure")
For Each oBIOS In colBIOS
        WScript.Echo "Part Number = " & oBIOS.PartNumber
        WScript.Echo "Serial Number = " & oBIOS.SerialNumber
        WScript.Echo "Asset Tag = " & oBIOS.SMBIOSAssetTag
Next
 
itteck

If it's any help I developed a small VB program that runs a few batch files and returns data to a VB interface while simultaneously writing a TXT file.

Information displayed includes:

MAC Address(s)
Volume ID
Volume Label
OS versions
Apps installed
Username
System name

And loads of other stuff.

Let me know if it's of any help. Also, if you want a copy (it e-mails automatically so I'd need an e-mail address to hartdcode).

----------------------------
Cogito Ergo Sum [jester2]
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top