Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


registry DeleteValue question

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,64383
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> registry DeleteValue question
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 registry DeleteValue question - 9/18/2008 7:39:12 AM   
  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

 
 
Post #: 1
 
 RE: registry DeleteValue question - 9/18/2008 9:33:06 AM   
  DiGiTAL.SkReAM


Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
There are key/values under them?
Do a search on delete registry subkey and see what you find.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to jemhardt)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> registry DeleteValue question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts