Apr 14, 2003 #1 UkMister IS-IT--Management Joined Mar 24, 2003 Messages 95 Location GB Is there any way I can retrieve the serial number from my windows 2000 server without having to reboot? I have been trying to find a way through the command line but haven't been very successful. Thankyou
Is there any way I can retrieve the serial number from my windows 2000 server without having to reboot? I have been trying to find a way through the command line but haven't been very successful. Thankyou
Apr 14, 2003 #2 fuunstatic MIS Joined Feb 19, 2002 Messages 363 Location GB do you mean the serial number of the box itself? "Work to live, don't live to work" "The problem with troubleshooting is that sometimes it shoots back" Upvote 0 Downvote
do you mean the serial number of the box itself? "Work to live, don't live to work" "The problem with troubleshooting is that sometimes it shoots back"
Apr 14, 2003 #3 Shift838 IS-IT--Management Joined Jan 27, 2003 Messages 987 Location US To get the serial number of a computer without restarting you can copy this code into a text file and save it as a .vbs (vb script file) Set SNSet = GetObject("winmgmts:".InstancesOf ("Win32_BIOS" for each SN in SNSet MsgBox "The serial number for this PC is: " & SN.SerialNumber Next This should work every time. Upvote 0 Downvote
To get the serial number of a computer without restarting you can copy this code into a text file and save it as a .vbs (vb script file) Set SNSet = GetObject("winmgmts:".InstancesOf ("Win32_BIOS" for each SN in SNSet MsgBox "The serial number for this PC is: " & SN.SerialNumber Next This should work every time.
Apr 23, 2003 #4 BarryMVS IS-IT--Management Joined Apr 17, 2003 Messages 172 Location GB Chris77504, Thanks for the code, I've been looking at a way of finding this out. I did as you suggested, but the returned message box contained your comment and an 'OK' box, but no serial number?!? Any ideas? Thanks, Barry. Upvote 0 Downvote
Chris77504, Thanks for the code, I've been looking at a way of finding this out. I did as you suggested, but the returned message box contained your comment and an 'OK' box, but no serial number?!? Any ideas? Thanks, Barry.
Apr 23, 2003 #5 penauroth Programmer Joined Oct 30, 2001 Messages 325 Location US Set SNSet = GetObject("winmgmts:".InstancesOf ("Win32_BaseBoard" for each SN in SNSet MsgBox "The serial number for this PC is: " & SN.SerialNumber Next Upvote 0 Downvote
Set SNSet = GetObject("winmgmts:".InstancesOf ("Win32_BaseBoard" for each SN in SNSet MsgBox "The serial number for this PC is: " & SN.SerialNumber Next
May 29, 2003 #6 BarryMVS IS-IT--Management Joined Apr 17, 2003 Messages 172 Location GB Penauroth, Thanks also for your caode, but it returned the same box with just an OK button. I'm copying the script and placing it into notepad and saving as a .vbs, so I don't think I'm doing anything wrong. Thanks for trying anyway. Barry ICT Network Administrator IT Services Manager Upvote 0 Downvote
Penauroth, Thanks also for your caode, but it returned the same box with just an OK button. I'm copying the script and placing it into notepad and saving as a .vbs, so I don't think I'm doing anything wrong. Thanks for trying anyway. Barry ICT Network Administrator IT Services Manager
May 29, 2003 #7 ricpinto Technical User Joined Apr 7, 2003 Messages 630 Location SG If the PC is clone or the serial number is not captured in the BIOS then it will not work. Upvote 0 Downvote