sr4uk Posted July 20, 2010 Share Posted July 20, 2010 I need to run the registry as an admin and delete all occurances of "DefaultConnectionSettings" and "SavedLegacySettings". I can launch Regedit as an admin but don't know how to pass the search and delete functions to it. Link to comment Share on other sites More sharing options...
GEOSoft Posted July 20, 2010 Share Posted July 20, 2010 See RegEnumValue() and RegDelete(). I'm not sure what permissions are required for those keys though. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
sr4uk Posted July 20, 2010 Author Share Posted July 20, 2010 So after doing my: RunAs ( "ADMIN", "DOMAIN", "Password", 4 , "regedit" ) I can send the RegEnum and RegDelete and it'll take under what I already have opened? Link to comment Share on other sites More sharing options...
GEOSoft Posted July 20, 2010 Share Posted July 20, 2010 Like I said, I'm not sure about the required permissions. Admin isn't high enough for some registry keys and I used a third party tool to remove all permissions from my registry so I can't check what the normal ones are. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Country73 Posted July 20, 2010 Share Posted July 20, 2010 So after doing my:RunAs ( "ADMIN", "DOMAIN", "Password", 4 , "regedit" ) I can send the RegEnum and RegDelete and it'll take under what I already have opened?Depending on how you have your script built, you may want to look at the #RequireAdmin.You can place this as the very first line in your script. Then, when launched, will prompt for credentials if the user is not a local admin on the machine.This will then run the entire script with those credentials. If you try to fail and succeed which have you done?AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now