Jump to content

Removing an Unticked Msconfig entry


Recommended Posts

I have a program that removes unneeded msconfig entries which works like this

this is just a snippet of the much larger code

$sRegString &= "|ZoneAlarm Installer|ZooskMessenger|zzz_ImInstaller_IncrediMail"
Global $aRegKeys = StringSplit($sRegString, "|")


$sRegKey = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
For $i = 1 To $aRegKeys[0]
    RegRead($sRegKey, $aRegKeys[$i])
    If @error = 0 Then
        RegDelete($sRegKey, $aRegKeys[$i])
        $Deleted &= $aRegKeys[$i] & "|"
        Sleep(100)
    EndIf
Next

Basically i create an array of the unwanted the cycle through the keys and remove them

$Deleted &= $aRegKeys[$i] & "|" is just for a count later on

So this deals with known entries but how do i deal with the ones that have been unchecked previously in msconfig?

Like these.

post-60350-0-08050300-1428961250_thumb.j

Link to comment
Share on other sites

delete the keys here worked for me

HKEY_LOCAL_MACHINESOFTWAREMicrosoftShared ToolsMSConfigstartupreg

wait...or is the question how to determine if they are unchecked...that seems harder  (however, only my unchecked items show up there, so maybe all keys there are the unchecked items from msconfig?)

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

doesnt seem to exist on Win 8.1

found on web

 

If you delete them manually via regedit, they're gone for good unless you made a backup first.

If you disabled them using MSConfig, you can find the disabled registry entires at

HKEY_LOCAL_MACHINESOFTWAREMicrosoftShared ToolsMSConfigstartupreg

and disabled startup entries1 at

HKEY_LOCAL_MACHINESOFTWAREMicrosoftShared ToolsMSConfigstartupfolder.

The subkeys there contain the necessary information to restore a disabled key. You can safely delete the keys found there but you can't restore them via MSConfig afterwards, though.

Note: MSConfig doesn't include items from Group Policy or the Windows 7 Task Scheduler!

Edited by Chimaera
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...