Automatically Remove Repeat Startup Programs On Shutdown

Status
Not open for further replies.

jbseven

Distinguished
Dec 2, 2011
646
0
19,160
Annoyed with those programs repeatedly adding themselves to your startup list? Tired of goole updater, acrobat speed launcher and other programs constantly finding their way back to the startup list even though you keep removing them? Here's how to run a basic shutdown script in Windows 7/8 to automatically remove these nuisances.

1. Find out where these startup programs are in the registry and note them down. I use HijackThis (free) to this effect. Or use Start>Run>regedit to find them. Typically these keys can be found in these locations:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\
HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run\

2. Open up notepad and enter these values:

Reg Delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run\annoyingregkey /f

where,
"annoyingregkey" is replaced by the NAME of the startup key you want to remove, and
"/f" is used to delete the reg entries without a prompt for confirmation.

If the reg key name contains spaces, you can use this format instead:

Reg Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "annoying reg key" /f

where /v is used to specify the value under the "Run" folder that you are trying to delete.

Here is an example of my shutdown script:

66shr.jpg


3. Once you've added all the startup programs you want to remove, save the file as "shutdownscript.bat" in a location of your choice.

4. Hit Start>Run>gpedit.msc

5. Browse to Computer Configuration>Windows Settings>Scripts (Startup/Shutdown) and double click Shutdown.

6. Add shutdownscript.bat to the list, hit ok and,

ld6mf.jpg


7. Done!

Its a good idea to test the script in command prompt to check that there aren't any syntax errors.
 
Status
Not open for further replies.