Marook-Online
* 06.Feb.2012, 14:46 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
23-Mar-2006 16:18
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


Hi @ all, sometimes you will need to change the CD-Key for a workstation. Even when you are getting new volume licenses - this is the way how you could do this on each station without doing it manually.

Code
GeSHi (vbs):
  1. '######################################
  2. 'How to change your CD-KEY      #
  3. '######################################
  4. Dim WshShell
  5. Dim oWPA
  6. Dim res
  7.  
  8. Const sKey = "<insert_your_cd_key_here>"
  9. Set WshShell = WScript.CreateObject("WScript.Shell")
  10.  
  11. 'Use the command below to read the key as argument
  12. 'sKey = WScript.arguments.Item(0)
  13.  
  14. sKey = Replace(sKey, "-", "") 'remove the "-" from key
  15.  
  16. WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents\OOBETimer" 'delete OOBETimer
  17. oWPA = GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("win32_WindowsProductActivation")
  18.  
  19. On Error Resume Next
  20.  
  21. For Each Obj In oWPA
  22.  res = Obj.SetProductKey(sKey)
  23.  
  24.  If Err <> 0 Then
  25.   WScript.Echo Err.Description, "0x" & Hex(Err.Number)
  26.   Err.Clear
  27.  End If
  28.  
  29. Next
Created by GeSHI 1.0.7.20
« Last Edit: 19-Nov-2007 20:10 by Marook » Logged
 

Read
05-Jun-2006 23:33
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


nice code thx Wink
Logged
 

Read
12-Jun-2006 21:01
Jenni
Administrator
*****
Offline Offline

Joined: N/A
Coding in: None
Posts: 1

I Will Use Google!



So ich muss jetzt was schreiben, damit ich private Nachrichten verschicken kann. Das ist somit geschehen.
Greetz
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!