Link to home
Start Free TrialLog in
Avatar of systems_ax
systems_ax

asked on

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.
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

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/
Do you mean product key? Use Regedit: It should be at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Avatar of systems_ax
systems_ax

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of RichardSlater
RichardSlater
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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).
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?
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
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
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.
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.
RGRodgers,
what exactly did you type?  It gives me "CHASSIS SERIAL NUMBER".
thank you
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....
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.
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
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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
mansmanf,
where is the computer name listed?
This script requires it: Start program: cscript GetSerial.vbs %computername%

THANK you very much
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