IE7 Keyboard shortcuts
Reinstall IE6
Uninstall IE7
Addressbar missing in IE
create date-based folder names
Automatic Updates grayed
WindowsUpdate Userdata persistence >> Foutcode 0x800A0046
Scheduled Restart
NT Password restore
Old installed devices are remembered
office stickynotes
Speed up Windows XP's defrag operations
Clear the Windows XP Run command's most recently used list
Schedule a restart operation with Windows XP's Shutdown utility
Disable Windows Messenger on a Windows XP machine
Troubleshoot Windows XP with the Driverquery command
Map drive letters to local folders in Windows XP
Alter Windows XP's most frequently used programs list
Instantly create Restore Points in Windows XP
Create restore point from command prompt
Specify Disk Cleanup configuration settings in Windows XP
Get system info from Windows XP's Help and Support Center
Speed up Windows XP's defrag operations
Clear the Windows XP Run command's most recently used list
Schedule a restart operation with Windows XP's Shutdown utility
Disable Windows Messenger on a Windows XP machine
Troubleshoot Windows XP with the Driverquery command
Map drive letters to local folders in Windows XP
Alter Windows XP's most frequently used programs list
Instantly create Restore Points in Windows XP
Specify Disk Cleanup configuration settings in Windows XP
Get system info from Windows XP's Help and Support Center
Logon Windows XP with lost password
Import the results of Windows XP's Tree command into Word
Open explorer to display Disk Drives
100 ways to make your systems more secure
How to change the Volume Licensing product key on a computer that is running Windows XP SP1 and later versions of Windows XP
IE7 Keyboard shortcuts
Mouse shortcuts
Open a link in a background tab
Open a new tab
Close a tab
Middle mouse button on a link
Double click on empty tab row space
Middle mouse button on the tab
RUN Menu:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\Inf\ie.inf
PS:space between DefaultInstall and 132
If your installation of IE7 was successful and uneventful, then uninstalling it is relatively simple process. The following steps will uninstall IE7 and restore IE 6.
Click Start, and then click Control Panel.
Click Add or Remove Programs.
Scroll down to Windows Internet Explorer 7, click it, and then click Change/Remove.
If for some reason Windows Internet Explorer 7 does not appear in the Add or Remove Programs, you should:
Open Windows Explorer
Click Tools | Folder Options
Click the View tab
Make sure the radio button next to Show hidden files and folders is on
Click OK
Click Start, and then click Run
Type: %windir%\ie7\spuninst\spuninst.exe into the text box and click Enter
Specified user account
In some cases, you may get an error message when you try to uninstall IE7 that says you cannot uninstall from a specified user account. To get around this check you will have to edit the Windows Registry.
Warning: Editing the Windows Registry incorrectly can cause the Windows operating system to stop functioning completely. This is a advanced operation and you are encouraged to back up the Windows Registry before you attempt any editing of the file. You have been warned.
Bypass the user account check with this Windows Registry edit:
Click Start, click Run, type regedit, and then press ENTER.
Navigate to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer.
Right-click the Internet Explorer key, click New, and then click DWORD value.
Type InstalledByUser as the name, and then press ENTER to finish creating the new registry value.
Try to uninstall Internet Explorer 7 again.
More help
If you find yourself still needing help uninstalling Internet Explorer 7, check out the IE7 release notes found on the Microsoft MSDN Web site.
Close Internet Explorer-windows; via Start / Run :
regsvr32 /i browseui.dll.
Restart pc check if adressbar is back.
If not, close Internet Explorer-windows
Start / Run: Regedit. Navigate to key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer click right on Toolbar and choose delete.
All toolbar settings are deleted. Open Internet Explorer and choose in menu View / Toolbars the toolbars you want to see.
create the special command on the context menu:
Launch Windows Explorer and select Tools | Folder Options.
In the Folder Options dialog box, select the File Types tab.
In the Registered File Types list, select Folder, and click the Advanced button.
In the Edit File Type dialog box, click the New button.
In the New Action dialog box, type
New Date-Based Folder
in the Action text box and
CMD.EXE /C MD "%1\%%DATE%%"
in the Application Used To Perform Action text box.
Click OK twice. Click Close to close the three dialog boxes.
When you open the Automatic Updates tab in My Computer Property sheet, or from Control Panel, all of the Automatic Updates configuration options may be grayed out. This happens due to any of the following reasons:
You're not logged on as Administrator (or equivalent)
Automatic Updates Policy is enabled
Automatic Updates (and Windows Update) access is blocked via Group Policy
To make the Automatic Updates options configurable by the user (only for stand-alone systems), remove the restrictions 2 & 3 above.
Click Start, Run and type REGEDIT.EXE
Navigate to this location:HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ WindowsUpdate \ AU
In the right-pane, delete the two values AUOptions and NoAutoUpdate
Navigate to this location:HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Policies \ WindowsUpdate
In the right-pane, delete the value DisableWindowsUpdateAccess
Using the Group Policy Editor - for Windows XP Professional
Click Start, Run and type gpedit.msc
Navigate to the following location:
=> Computer Configuration
==> Administrative Templates
===> Windows Components
====> Windows Update
In the right-pane, double-click Configure Automatic Updates and set it to Not Configured
Then, navigate to this location:
=> User Configuration
==> Administrative Templates
===> Windows Components
====> Windows Update
In the right-pane, set Remove access to all Windows Update features to Not Configured
More Information
Configure Automatic Updates corresponds to AUOptions registry value. More information on this Policy can be obtained from here
Remove access to all Windows Update features corresponds to DisableWindowsUpdateAccess registry value. Also, when this Policy is enabled, the following errors are shown when accessing the Windows Update, depending upon the way you access the Windows Update page.
Network policy settings prevent you from using Windows Update to download and install updates on your computer. If you believe you have received this message in error, please check with your system administrator.
or
Error Windows Update was disabled by your system administrator.
More information on this policy can be obtained here.
Methode 4 done it for me :-)
Methode 1: Verwijder de gebruikersaccount die problemen ondervindt met de accountgroep Gasten of Beperkt
Methode 2: Stel de security descriptor in
Methode 3: Voeg de lokale Administrator- en Service-account toe aan het beleid Impersonate a client after authentication
Methode 4: Configureer de RPC-service (Remote Procedure Call) voor aanmelding als de lokale systeemaccount
1.
2.
3.
Klik op Start, klik op Uitvoeren, typ services.msc en klik op OK.
Klik met de rechtermuisknop op de service Remote Procedure Call (RPC) en klik op Eigenschappen.
Open het tabblad Aanmelden, klik op Lokale systeemaccount, klik op Toepassen en klik op OK.
Go to Control Panel | Scheduled Tasks.
Double-click Add Scheduled Task to launch the Scheduled Task Wizard.
Click Next and then click the Browse button.
Access the Windows\System32 folder, select Shutdown.exe, and click Open.
Follow the wizard through the next two screens to give the task a name and choose a schedule.
Enter your user account name and password and click Next.
Select the Open Advanced Properties check box and click Finish.
In the task's Properties dialog box, add the /r parameter to the end of the command line in the Run text box and click OK. (Be sure to include a space between the last character in the command name and the first character in the parameter list.)
Enter your user account name and password and click OK.
Administrator-account in Windows XP Home Edition, blanco. Enter and you can log in. Changing it can only in SAFE MODE. When you have problems with password, then the Offline NT Password & Registry Editor from Peter Nohrdal can help you. Ypu can download the boot-cd via
http://home.eunet.no/~pnordahl/ntpasswd and startup the pc with it. The Linux-kernel on the cd can edit the parts of Windows where the passwords are stored. It's possible to give direct an new password but its better when you don't do it . Choose for a blanco password and after rebooting in windows change then the password.
The Windows Genuine Advantage procedure
The first step that has undertaken Microsoft against illegal installations, is uses of a monitoring of the legitimacy of of software. Before up-dates can download you of Windows update-website or Microsoft update-website (for all microsoft products) it is regularly checked if the licentie is used, however, legitimately. Microsoft calls this procedure Windows Genuine Advan-tage, where is used the term crazily enough validate (probably to give that for you there you to the feeling an added value is).
TIP: WGA are considered by some as spyware. With the tool (download RemoveWGA: www.firewallleaktester.com/removewga.htm) you can eliminate this control. For downloading some updates you need moreover WGA, however.
Make the following bat example DeviceManagemant.bat:
++++++++++++++++++++++++++++++++++
set devmgr_show_nonpresent_devices=1
devmgmt.msc
exit
---------------------------------------------------------------
The option see all devices must be set visible
you can delete the storage device wich causes problems
Make shortcut to Outlook.exe
Right click and chose Properties and append: /c ipm.stickynote
normaly you will see somthing like:
C:\Program Files\Microsoft Office\office[10/11]\
OUTLOOK.EXE /c ipm.stickynote
When you click the link there will be a yellow post-it en the content will be placed in outlook under Notities
Speed up Windows XP's defrag operations
Note:
This tip applies to both Windows XP Home and Professional editions.
A simple way to speed up a defrag operation in Windows XP is to restart the system before you launch Defrag. This allows the operating system to clear out the swap/paging file and reset it to the default size. This lets Defrag focus strictly on the necessary data on the hard disk without having to stop and manage a huge swap file loaded with unneeded data.
Another approach to speeding up a defrag operation in Windows XP is to configure it to occur immediately upon startup. Fortunately, you can do so easily with this simple registry edit:
1. Launch the Registry Editor (Regedit.exe).
2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce.
3. Right-click on the RunOnce subkey and select New | String Value.
4. Name the value Defrag and press [Enter] twice.
5. Type Defrag.exe
c: /f in the Value Data text box and click OK.
6. Close the Registry Editor and restart Windows.
The defrag operation will begin when you type in your password and press [Enter]. (Keep in mind that values added to the RunOnce key are removed immediately after the command has been run.)
Editing the registry is risky, so be sure you have a verified backup before saving any changes. This tip applies to both Windows XP Home and Professional editions.
If you regularly use the Run command to launch applications, you know that Windows XP keeps a record in the registry, called the MRU (most recently used) list, of all the applications you recently launched. When you have the Run dialog box open, you can access the MRU list by clicking the drop-down arrow adjacent to the Open text box.
The MRU list is designed to make it easier for you to re-launch the same applications at a later date. However, this list can grow quite long, making it difficult to find what you want.
Fortunately, you can create a registry shortcut that clears the Run command's MRU list. To do so, follow these steps:
1. Launch the Registry Editor (Regedit.exe).
2. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU.
3. Right-click on the RunMRU key and select Export.
4. Name the REG file Clear Run MRU, click the Save button, and close the Registry Editor.
5. Open the Clear Run MRU.reg file in Notepad.
6. Add a minus sign to the beginning of the key name just inside the square brackets.
7. Delete all lines that follow the line containing the key path.
8. Save the file and close Notepad.
Reboot Windows (or at least log off and then log back on) to make this change effective. Now, any time you want to clear the Run command's MRU list, simply locate and double-click the Clear Run MRU.reg file.The Registry Editor will then display two dialog boxes: one that prompts you to confirm the operation and one that lets you know the operation was successful.
This tip applies to both Windows XP Home and Professional editions.
Wouldn't it be nice if each morning your Windows XP machine restarted before you got to work so you had a fresh system to work on each day?
To help you automate this type of operation, Windows XP comes with a command-line utility called Shutdown.exe, which can restart your system. To make this happen automatically, you can configure it to run at a specified time with the Scheduled Tasks tool. Here's how:
1. Go to Control Panel | Scheduled Tasks.
2. Double-click Add Scheduled Task to launch the Scheduled Task Wizard.
3. Click Next and then click the Browse button.
4. Access the Windows\System32 folder, select Shutdown.exe, and click Open.
5. Follow the wizard through the next two screens to give the task a name and choose a schedule.
6. Enter your user account name and password and click Next.
7. Select the Open Advanced Properties check box and click Finish.
8. In the task's Properties dialog box, add the /r parameter to the end of the command line in the Run text box and click OK. (Be sure to include a space between the last character in the command name and the first character in the parameter list.)
9. Enter your user account name and password and click OK.
When the Shutdown utility runs, you'll momentarily see a small dialog box on your screen before the system restarts.
If you're using MSN Messenger as your chat and videoconferencing tool, you may never use Windows Messenger anymore and have removed it from the startup group to keep it out of your way. However, you may have seen it pop up on occasion and had to struggle with closing it down. The reason that Windows Messenger makes these impromptu appearances is that Outlook, Outlook Express, and even some Microsoft Web pages can still make it load automatically. Fortunately, you can banish Windows Messenger from your desktop by making an alteration to the local group policy with the Group Policy Editor. Here's how:
1. Access the Run dialog box by pressing [Windows]R.
2. In the Open text box type
Gpedit.msc and click OK to launch the Group Policy Editor.
3. Go to Computer Configuration | Administrative Templates | Windows Components | Windows Messenger.
4. Double-click the Do Not Allow Windows Messenger To Be Run setting.
5. In the resulting dialog box, select the Enabled option and click OK.
6. Close the Group Policy Editor.
Notes:
Note:
Note: This tip applies only to Windows XP Professional.
Troubleshoot Windows XP with the Driverquery command
Note: This tip applies only to Windows XP Professional.
When you're troubleshooting a suspected device driver problem, you can find detailed information about specific drivers being used in a Windows XP system by going to Device Manager, selecting the device from the list, and drilling down to the device's properties sheet. Although this technique is fine when you're looking for information on one specific device driver, it's not very efficient when you're interested in information about a number of device drivers—it's just too time consuming.
To ease the task of gathering information on a number of device drivers, you can use a tool called Driver Query (Driverquery.exe). When you run this tool, it provides you with a detailed list of all the device drivers installed on a local system or on any system on a network—and using it is easy. Here's how:
1. Open a Command Prompt window.
2. Type
Driverquery on the command line.
The results are displayed in a table format in the Command Prompt window. If you want to perform more detailed analysis, you can direct Driver Query to save the results in a CSV file so you can open them in a spreadsheet application, such as Excel. To do so, type the following on the command line:
Driverquery /v /fo csv > drivers.csv
Map drive letters to local folders in Windows XP
If you regularly work with files stored in shared folders on a Windows XP network, chances are that you've used Windows' Map Network Drive command to map a drive letter to that folder. Wouldn't it be nice if you could map a drive letter to a nested folder on your hard disk? Then, you could access nested subfolders just as easily as you can access shared folders on the network.
Fortunately, you can do just that. Unbeknownst to most Windows users, an old DOS command called Subst is designed to associate a drive letter with any local folder—and it's still a viable tool in Windows XP. Here's how to use the Subst command:
1. Open a Command Prompt window.
2. Type the following command and press [Enter]:
subst x: C:\{pathname}\foldername}
where
x: is any available drive letter and {pathname}\foldername} is the complete path to your selected folder. For example:
Subst K: C:\Downloads\Windows\Drivers
Now, instead of typing the full path, you can reach the Drivers folder by accessing drive K: in Windows Explorer.
Alter Windows XP's most frequently used programs list
Note:
Since editing the registry is risky, be sure you have a verified backup before saving any changes.
The Start menu in Windows XP features the most frequently used programs list, which is designed to provide you with quick access to the programs you use the most.
XP provides you with only two configuration options: the ability to completely clear the list and the ability to specify the maximum number of programs that can appear on this list at any one time. However, you may also want to prevent certain applications, such as Calculator and Notepad, from appearing on the list.
Copyright ©2006 CNET Networks, Inc. All rights reserved. For more downloads and a free TechRepublic membership, please visit http://techrepublic.com.com/2001-6240-0.html 10 handy Windows XP efficiency tricks
Fortunately, you can prevent an application from appearing in the Start menu's most frequently used programs list by adding a special key to the registry. Here's how:
1. Launch the Registry Editor (Regedit.exe).
2. Go to HKEY_CLASSES_ROOT\Applications.
3. Right-click on the Applications key and select New | Key.
4. Give the key the same name as the application's executable file.
5. Right-click your new key and select New | String Value.
6. Name the string value
NoStartPage.
7. Close the Registry Editor.
8. Reboot or log off and log back on for the change to take effect.
Page 4
Instantly create Restore Points in Windows XP
Note:
To use this script, you must have Administrator privileges.
Windows XP's System Restore utility continuously monitors your system looking for changes to the system files and certain application files. This utility will automatically create a Restore Point if it senses a change.
If you want to manually create a Restore Point, you can launch the System Restore utility by clicking Start | All Programs | Accessories | System Tools | System Restore and then following the steps in the wizard. You can simplify the launching process by copying the System Restore shortcut to your desktop, but you still have to walk through the wizard.
However, there's a great method for creating a Restore Point with just the click of your mouse. All you have to do is create a simple two-line VBScript file that uses the WMI (Windows Management Instrumentation) moniker to access the SystemRestore class and create a Restore Point. Here's how:
1. Launch Notepad.
2. Type these two lines:
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("My Restore Point", 0, 100)
3. Save the file as InstantRestorePoint.vbs.
Now, when you're ready to create an instant Restore Point, all you have to do is launch the script. System Restore will run in the background without displaying its interface, and it will create a restore point called My Restore Point.
Create Restore point from Command prompt
Restart computer en press F8
Save mode with command propt option
Type following at command prompt:
C:\windows\system32\restore\rstrui.exe
Specify Disk Cleanup configuration settings in Windows XP
If you run Windows XP's Disk Cleanup utility regularly to keep your hard disk free from clutter, you may have wished for a way to save your settings so you wouldn't have to reconfigure the utility each time you run it. There is a method for saving your settings, but the steps are undocumented. Here's how:
1. Access the Run dialog box by pressing [Windows]R.
2. In the Open text box, type the following command:
Cleanmgr /d x: /sageset:#
3. In this command line, Cleanmgr is Disk Cleanup's executable file name; /d x: is the letter of the drive you want to clean; /sageset is a special configuration command that tells Disk Cleanup to save the settings in
Copyright ©2006 CNET Networks, Inc. All rights reserved. For more downloads and a free TechRepublic membership, please visit http://techrepublic.com.com/2001-6240-0.html 10 handy Windows XP efficiency tricks
the registry; and # is a unique number from 0 to 65,535 that designates a unique configuration settings file. For example, you could create your first configuration settings file for drive C by typing
Cleanmgr /d C: /sageset:1 in the Open text box.
4. When you see the Disk Cleanup Settings dialog box, select the check boxes next to the categories of files you'll want to remove from your hard disk.
5. Click OK to save the settings in the registry.
6. To run Disk Cleanup using the saved settings, type the following command:
Cleanmgr /sagerun:#
In this command line, Cleanmgr is Disk Cleanup's executable file name; /sagerun is the configuration command that tells Disk Cleanup to retrieve the saved settings from the registry; and # is the number you used to designate your configuration settings file.
Page 5
Get system info from Windows XP's Help and Support Center
When you need to investigate Windows XP system hardware and software, you probably use the System Information tool found on the Start | All Programs | Accessories | System Tools menu. However, Windows XP's Help and Support Center provides an alternative System Information tool that you definitely should investigate.
Instead of the tree-like structure found in the main System Information tool, the Windows XP's Help and Support Center essentially creates a Web page, complete with tables and graphics. Here's how to access the Help and Support Center's System Information tool:
1. Go to Start | Help And Support.
2. Under the Pick A Task heading on the Help And Support Center page, click Use Tools To View Your Computer Information And Diagnose Problems.
3. On the Tools page, select My Computer Information in the Tools column.
4. On the My Computer Information page, select any of the links to view a graphical report of your system.
This interface not only makes the details easier to digest, but you'll also find links to other resources, both in the operating system and on the Internet, that will help you gather more information or solve prob
If you created a password reset disk for Windows XP, reset your password by using the password reset disk.
For additional information about how to use a password reset disk, click the following article numbers to view the articles in the Microsoft Knowledge Base:
305478 (http://support.microsoft.com/kb/305478/) How to create and use a password reset disk for a computer that is not a domain member in Windows XP
306214 (http://support.microsoft.com/kb/306214/) How to create and use a password reset disk for a computer in a domain in Windows XP
If you cannot log on to Windows by using a particular user account (including the Administrator or Computer Administrator accounts), but you can log on to another account that has administrative credentials (including the Administrator or Computer Administrator accounts), follow these steps:
Warning If you reset the password for a user account in this manner in Windows XP Professional, the following kinds of information for that user will be no longer available:
•
•
•
E-mail messages that are encrypted with the user's public key.
Internet passwords that are saved on or remembered by the computer.
Any files that the user has encrypted.
You should now be able to log on to Windows with the user account and the new password. The following sections provide step-by-step instructions to reset the password for a typical user account in Safe Mode by using the Administrator (or Computer Administrator account.
Windows XP Home Edition or Windows XP Professional in a workgroup
To log on as Administrator and reset the password, follow these steps:
Windows XP Professional in a domain
To log on as Administrator to reset the password, follow these steps:
Import the results of Windows XP's Tree command into Word
Using the Tree command to research your folders on your Windows XP hard disk can give you results fast—too fast for your eye to catch. Here's how to use Word to create a Tree you can read in detail and at your own pace.
To find out how many folders there are on your Windows XP hard disk, you can open a Command Prompt and use the Tree command. You'll get a very nice looking graphical tree structure showing all the folders on your hard disk. The only problem is that the display will scroll by your screen so fast and exceed the buffer size, so you'll never be able to see it.
Instead, try using the old MS-DOS pipe to funnel the output of the Tree command to an RTF (Rich Text Format) file. You can then import that RTF file into a specially formatted Word document and have the same graphical tree structure showing all the folders on your hard disk in a document. Here's how:
Open a Command Prompt window.
Use the CD \ command to access the root folder.
Type Tree > Tree.rtf
Close the Command Prompt window.
Launch Word and open a new document.
Go to File | Page Setup.
In the Page Setup dialog box, choose the Landscape Orientation, and set the left and right margins to 0.
Click OK and click the Ignore button in the margins warning dialog box.
Go to Insert | File.
In the Insert File dialog box, locate the Tree.rtf file and click the Insert button.
In the File Conversion dialog box, select the MS-DOS option and click OK.
You can save the document and then scroll through the graphical tree structure showing all the folders on your hard disk.
Note: This tip applies to both Windows XP Home and Windows XP Professional.
# Open explorer to display Disk Drives
on your desktop make a link with:
C:\Windows\Explorer.exe /n, /e, /select, C:\
10 things you should know about securing wireless connections
10 things you should do to a new PC before connecting it to the Internet
10 ways to monitor what your users are doing with company computers
10 things you should do to protect your network against wireless devices
10 things you should know about Vista's Network Access Protection (NAP)
This article was previously published under Q328874
Warning The steps in the article are effective only on Volume License media. If you try these steps on OEM media or on retail media, you will not change the product key.
On This Page
If you use a "leaked" product key (a product key that is known to be available to the general public) for the deployment of Microsoft Windows XP across multiple computers (a Volume Licensing installation), you may not be able to install Windows XP Service Pack 1 (SP1) or later versions of Windows XP or automatically obtain updates from the Windows Update Web site. For example, you may experience the symptoms that are described in the following Microsoft Knowledge Base article when you install Windows XP SP1 or a later version of Windows XP:
326904 (http://support.microsoft.com/kb/326904/) You receive a "The product key used to install Windows is invalid" error message
This article describes how to change the Windows XP product key after a Volume Licensing installation. You can use the Windows Activation Wizard graphical user interface (GUI) or a Windows Management Instrumentation (WMI) script. The Activation Wizard method is easier, but if you must change the product key for multiple computers, the script method is better.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows
If you have only a few volume licensing product keys to change, you can use the Activation Wizard.
Note Microsoft recommends that you run System Restore to create a new restore point before you follow these steps. For information about how to create a restore point by using System Restore, see the "To Create a Restore Point" help topic in Help and Support.
You can create a WMI script that changes the volume licensing product key, and then deploy this script in a startup script. The sample ChangeVLKey2600.vbs script and the sample ChangeVLKeySP1 script that are described in this section use the new volume licensing key that you want to enter, in its five-part alphanumeric form, as a single argument. Microsoft recommends that you use the ChangeVLKey2600.vbs script on Windows XP-based computers that are not running Windows XP SP1 or a later version of Windows XP and that you use the ChangeVLKeySP1.vbs script on Windows XP-based computers that are running Windows XP SP1 or a later versions of Windows XP. These scripts perform the following functions:
•
•
•
They remove the hyphen characters (-) from the five-part alphanumeric product key.
They create an instance of the win32_WindowsProductActivation class.
They call the SetProductKey method with the new volume licensing product key.
You can create a batch file or a cmd file that uses either of the following sample scripts, together with the new product key as an argument, and either deploy it as part of a startup script or run it from the command line to change the product key on a single computer.
For more information about how to script the product key, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/bb457096.aspx (http://technet.microsoft.com/en-us/library/bb457096.aspx)
ChangeVLKeySP1.vbs
' ' WMI Script - ChangeVLKey.vbs ' ' This script changes the product key on the computer ' '*************************************************************************** ON ERROR RESUME NEXT if Wscript.arguments.count<1 then Wscript.echo "Script can't run without VolumeProductKey argument" Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX" Wscript.quit end if Dim VOL_PROD_KEY VOL_PROD_KEY = Wscript.arguments.Item(0) VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation") result = Obj.SetProductKey (VOL_PROD_KEY) if err <> 0 then WScript.Echo Err.Description, "0x" & Hex(Err.Number) Err.Clear end if Next
ChangeVLKey2600.vbs
' ' WMI Script - ChangeVLKey.vbs ' ' This script changes the product key on the computer ' '*************************************************************************** ON ERROR RESUME NEXT if Wscript.arguments.count<1 then Wscript.echo "Script can't run without VolumeProductKey argument" Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX" Wscript.quit end if Dim VOL_PROD_KEY VOL_PROD_KEY = Wscript.arguments.Item(0) VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents\OOBETimer" 'delete OOBETimer registry value for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation") result = Obj.SetProductKey (VOL_PROD_KEY) if err <> 0 then WScript.Echo Err.Description, "0x" & Hex(Err.Number) Err.Clear end if Next
Example
The following example shows how to use the ChangeVLKeySP1.vbs script from a command line:
1.
2.
Click Start, and then click Run.
In the Open box, type the following command, where AB123-123AB-AB123-123AB-AB123 is the new product key that you want to use, and then click OK:
c:\changevlkeysp1.vbs ab123-123ab-ab123-123ab-ab123
For more information, visit the following Microsoft Web site:
http://catalog.microsoft.com/genuine/purchase/UpdateInstructions.aspx (http://catalog.microsoft.com/genuine/purchase/UpdateInstructions.aspx)
APPLIES TO
•
•
•
Microsoft Windows XP Professional SP2
Microsoft Windows Server 2003, Web Edition
Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)