server's serial number

I need to know what my server's serial number is.  Is there a command prompt that can do that for me?
I am running windows 2003 pro server.
LVL 1
systems_axAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
There is no such thing as Windows 2003 Pro Server.  I assume you mean Windows 2003 Server.  Try SIW - it lists license keys.  http://www.gtopala.com/
0
Brian PiercePhotographerCommented:
Do you mean product key? Use Regedit: It should be at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
0
systems_axAuthor Commented:
yes, Windows 2003 small business Server.  Is there a dos command that can be issued to find what the serial number of the machine is?
thank you very much
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

RichardSlaterCommented:
I can't test it right now because I don't have access to a Windows 2003 box, but the following should work:

wmic systemenclosure get serialnumber
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee W, MVPTechnology and Business Process AdvisorCommented:
No there is no command line, built in program to do that.  You will need to use a third party tool, I recommend SIW (link above).
0
Lee W, MVPTechnology and Business Process AdvisorCommented:
Not for the Windows Serial number - that gets you the hardware serial number - if the bios supports it.
(Ran the command on both an XP box and a 2003 box and neither reported any data).

Further, correct me if I'm wrong, but your looking for the PRODUCT KEY to allow re-installation if you need to, right?
0
systems_axAuthor Commented:
leew,
I am looking for the server's serial number so that I can create a registry key manually.  What happens is that when I install this particular software on this server, the registry key is not created in the registry, the reason i know that is because the key (i know where it should be) is not there, but everything else such as installation folder with all the files and the service are created.  Everytime i try to start this server (it is a sybase product), it tells me that the registry key does not exist.
I have tried re-installing this software several times and for some reason, the installation path point to the Recycle bin and not the default path as it is coded within the deployment.  

is there any utility that might be blocking the key registration?
thank you very much
0
systems_axAuthor Commented:
RichardSlater,
thank you
i tried wmic systemenclosure get serialnumber and all i see is:
"CHASSIS SERIAL NUMBER"
i do not know what this all means
0
RichardSlaterCommented:
That is the same message I get on a Windows XP Pro workstation, which I can only assume means that it can not be done with WMI. I will test further tomorrow.
0
RGRodgersCommented:
The WMIC command worked for me on XP.  It first said that it was installing the command.  Then, it gave me the serial number.  That command is way too cool.  It can give you a lot of information.
0
systems_axAuthor Commented:
RGRodgers,
what exactly did you type?  It gives me "CHASSIS SERIAL NUMBER".
thank you
0
RGRodgersCommented:
I actually copied and pasted the command as provided by RichardSlater

wmic systemenclosure get serialnumber

The response was:
SerialNumber
0034xxxxx9

I added the xxxxxx's....
0
RichardSlaterCommented:
WMI is fantastic!

system_ax, accessing the serial number will only work if the manufacturer has entered it into the BIOS this will not work on a custom built server/pc, I have only ever seen it working on IBM and HP servers.
0
systems_axAuthor Commented:
RichardSlater,
my server is not custom built and is Samsung.  This is only a development sever and i did not activate windows yet.  Will that matter?
How do I chech if manufacturer has entered it into the BIOS?
thank you very much
0
RichardSlaterCommented:
You should be able to find information in the BIOS itself. Reboot and press the key indicated to get into "Setup" usually. Never used Samsung servers, so I can't help you any more I am afraid.
0
Fridolin MansmannMaster of Business Engineering ManagementCommented:
Using WMI:

Save the following as VBS file, e.g.

____________________________
Set oArgs = wscript.Arguments

If (oArgs.Count <> 1) Then
    wscript.echo "Usage: alias.vbs Servername"
    wscript.echo "e.g cscript alias.vbs RKAMSEM1"
    wscript.quit (0)
End If

'General values
On Error Resume Next
strComputer =  oArgs(0)
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & 

"\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystem",,48)
For Each objItem in colItems
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "Manufacturer: " & objItem.Manufacturer
    Wscript.Echo "Model: " & objItem.Model
Next

'Serial Number of server
On Error Resume Next
strComputer =  oArgs(0)
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & 

"\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
    Wscript.Echo "Version: " & objItem.Version
    Wscript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
Next

WScript.Quit(0)
____________________________

OPEN A CMD

Start program: cscript GetSerial.vbs %computername%

you also could connect to other computers if you account has proper rights (admin)
0
systems_axAuthor Commented:
mansmanf,
where is the computer name listed?
This script requires it: Start program: cscript GetSerial.vbs %computername%

THANK you very much
0
Fridolin MansmannMaster of Business Engineering ManagementCommented:
The computername is the parameter %1 that is handed to the VBS script

strComputer =  oArgs(0)

You can also directly insert the computername in the script.
(would be a line like strComputer=Mycomputername

the script was build (this is only a small part of the original WMI script) to query a variable list of server (names) about some values..., starting the command line like follows:

e.g.:
for /F "eol=; delims=, " %i in (C:\serverlist.txt) DO cscript //NOLOGO GetSerial.vbs %i >>C:\Result.txt

(use a txt file (C:\serverlist.txt)  with one computername per line, exklude lines with ";" in the beginning

Have a nice day
Frido
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.