Jump to content

Recommended Posts

Posted (edited)

I have a msconfig script that clears out unwanted entries for work, sometime computers have blank ones that have been previously unselected, is there a way to remove these entries?

If i select them all first my script gets them sorted but doesnt seem to grab the unchecked ones.

post-60350-0-17271400-1416209361_thumb.j

I remove the files like this

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

Global $Deleted = ""
$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
Edited by Chimaera
Posted

Check this registry key and subkeys, there are all the info about the items in your screen:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\

jguinch nice your _RunWaitChids and _ProcessWaitCloseRec, can be useful

Nothing is so strong as gentleness. Nothing is so gentle as real strength

 

Posted

Check this registry key and subkeys, there are all the info about the items in your screen:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\

Doesn't exist on Win 8

Thx Bert i already use cleaner for other scripts

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
×
×
  • Create New...