Note that it's often easier to do this kind of thing in a script under the group policy node Computer Configuration\Windows Settings\Scripts\Startup. That way it will run on each machine at startup and you don't have to worry about which ones are offline at any given time.
If you have at least one Vista, 2008, or Windows 7 machine on your domain and have Client Side Extensions installed then you could also do this using Group Policy Preferences.
Main Topics
Browse All Topics





by: Shift-3Posted on 2009-11-06 at 08:08:04ID: 25760337
Paste the script below into a text file with a .cmd extension. Customize the value of the list variable on line 4 with the location of a text file containing the target computer names, one per line.
Running the script will echo the commands to be run. Once you have tested it successfully and are certain it will do what you intend, remove the word ECHO from line 8 to delete the registry keys.
Select allOpen in new window