Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › How to remove startup programs from the command line..
New Posts  All Forums:Forum Nav:

How to remove startup programs from the command line..

post #1 of 3
Thread Starter 
Thought I'd share a little command line fun I figured out this morning. Forwarning, this Will compleatly remove the msconfig>startup program entry from the startup list.

Example: Utorrent

Finding the entry and registry location

Code:
C:\\>wmic startup where caption="utorrent" list full

Caption=uTorrent
Command="C:\\Program Files\\uTorrent\\uTorrent.exe"
Description=uTorrent
Location=HKU\\S-1-5-21-1390067357-261478967-682003330-1003\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run
SettingID=
User=LAPTOP\\scott
Verifying the registry program and location to to edit..

Code:
C:\\>reg query HKEY_USERS\\S-1-5-21-1390067357-261478967-682003330-1003\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\ /s


! REG.EXE VERSION 3.0

HKEY_USERS\\S-1-5-21-1390067357-261478967-682003330-1003\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\
    ctfmon.exeREG_SZC:\\WINDOWS\\system32\\ctfmon.exe
    uTorrentREG_SZ"C:\\Program Files\\uTorrent\\uTorrent.exe"
Deleting Utorrent from the starting when the OS loads.

Code:
C:\\>reg delete HKEY_USERS\\S-1-5-21-1390067357-261478967-682003330-1003\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\ /v utorrent

Delete the registry value <Y/N>? y

This opperation completed sucessfully
Adding value back into the registry:

This is the command to add the registy entry back into the startup menu. Note: notice the " " quotes in the sting destination. This is required unlike when using regedit.exe.

Code:
C:\\>reg add HKEY_USERS\\S-1-5-21-1390067357-261478967-682003330-1003\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v uTorrent /t REG_SZ /d "C:\\Program Files\\uTorrent\\utorret.exe"

Edited by scottsee - 12/11/09 at 6:58am
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
post #2 of 3
Pretty neat! Good to know if I ever am in a pickle.
War Machine
(16 items)
 
Spare Computer
(13 items)
 
2142
(2 photos)
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 6400+ Brisbane 2.1GHz MSI K9N SLI Platinum NVIDIA GeForce 7600GT 256MB GDDR3 ( 3GB 
Hard DriveOSMonitorPower
250GB IDE 7 Pro x64 32" 1080i Flat Panel TV Rosewill Turbo series 550W 
Case
ARK 6099-CA 
  hide details  
Reply
War Machine
(16 items)
 
Spare Computer
(13 items)
 
2142
(2 photos)
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 6400+ Brisbane 2.1GHz MSI K9N SLI Platinum NVIDIA GeForce 7600GT 256MB GDDR3 ( 3GB 
Hard DriveOSMonitorPower
250GB IDE 7 Pro x64 32" 1080i Flat Panel TV Rosewill Turbo series 550W 
Case
ARK 6099-CA 
  hide details  
Reply
post #3 of 3
Thread Starter 
moved post..
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › How to remove startup programs from the command line..