Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Some useless VBS for ya...
Closed Thread
Old 08-02-2004, 10:50 PM   #1 (permalink)
 
Wizard Techie

Join Date: Jan 2003

Posts: 3,320

Shakie

Send a message via ICQ to Shakie Send a message via Yahoo to Shakie
Default Some useless VBS for ya...

Code:
Set SNSet = GetObject("winmgmts:").InstancesOf _
	("Win32_OperatingSystem")
For Each SN In SNSet
	MsgBox "The serial number for the installed OS is: " & _
		SN.SerialNumber
Next
Paste that into a notepad, name it anything you want with a *.vbs extension and then you can click to find out the serial number of your OS.


** NOTE ** The serial number is NOT the same as your CD KEY. Tested and works on an XP system.

Got a useless piece of VBS... post it here.
__________________
<code>
(\ /) This is Bunny. Add him to your signature
(O.o) to help him achieve <a href=\"http://carboxymoron.com/sigbunny/\" title=\"the signature bunny\">world domination</a>.
(> <)
</code>
<code>Shakie<br>Smodministrator<br>\"If I don\'t step over the line every now-and-then, how will I know where it is?\"</code>
Shakie is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On