| |
jemhardt
Posts: 4
Score: 0
Joined: 9/12/2008
Status: offline
|
Hey, i'm trying to make sure some strings in my registry are removed. The return code for this call is 0, but the strings are still in the registry. Any ideas why? 'Code to remove any items from the run keys strComputer = "." Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv") KeyPath = "Software\Microsoft\Windows\CurrentVersion\Run\" counter = 0 do while arrayTotal > 0 and counter < arrayTotal msgbox "Deleting " & delayName(counter) objRegistry.DeleteValue HKEY_CURRENT_USER, KeyPath, delayName(counter) objRegistry.DeleteValue HKEY_LOCAL_MACHINE, KeyPath, delayName(counter) counter = counter + 1 loop
|
|