It is the serial no of the computer which i believe is in the bios
Thanks
Patrick
Main Topics
Browse All TopicsI believe there is some way to find out the serial number of your computer programatically. Is there some api call available for this ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The serial number (or assest tag) of the computer is usually available via Windows Management Instrumentation (WMI).
Here is an example (in VB.Net) that demonstrates the concepts:
Imports System
Imports System.Management
Imports System.Windows.Forms
Namespace WMISample
Public Class MyWMIQuery
Public Overloads Shared Function Main() As Integer
Try
Dim searcher As New ManagementObjectSearcher( _
"root\CIMV2", _
"SELECT * FROM Win32_ComputerSystemProduc
For Each queryObj As ManagementObject in searcher.Get()
Console.WriteLine("-------
Console.WriteLine("Win32_C
Console.WriteLine("-------
Console.WriteLine("Caption
Console.WriteLine("Identif
Console.WriteLine("Name: {0}", queryObj("Name"))
Next
Catch err As ManagementException
MessageBox.Show("An error occurred while querying for WMI data: " & err.Message)
End Try
End Function
End Class
End Namespace
No, it's not an API call... Here is the exact same example in VBScript. The syntax is the same for VB6 (execept for the Wscript.Echo)
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_ComputerSystemProduc
For Each objItem in colItems
Wscript.Echo "-------------------------
Wscript.Echo "Win32_ComputerSystemProdu
Wscript.Echo "-------------------------
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
Wscript.Echo "Name: " & objItem.Name
Next
Business Accounts
Answer for Membership
by: bhaspupPosted on 2005-11-02 at 23:21:08ID: 15215176
private static extern long GetVolumeInformation(strin g PathName, StringBuilder VolumeNameBuffer, UInt32 VolumeNameSize, ref UInt32 VolumeSerialNumber, ref UInt32 MaximumComponentLength, ref UInt32 FileSystemFlags, StringBuilder FileSystemNameBuffer, UInt32 FileSystemNameSize)
Are you looking for Volume's serial number or Mother board's serial no?
bhaspup