zenmaster Posted December 30, 2008 Share Posted December 30, 2008 I've been asked by a Network Admin for help figuring out a way to update some restricted HKCU registry keys. (HKCU\Policies\Microsoft\.....) for example. The User's do not have rights to these keys, but the admin wants to push some settings here. (He can't use actual policies for political reasons....) He has the ability to start a process as SYSTEM or do a "RunAs" with an admin account. The bugger is that both of these processes don't have obvious ways to write to the current user's hive. We can't even manually load the Hive since it says it is in use. I know in theory it's possible because I had used a destkop management package in the past that would update the HKCU keys via a Service running as System elsewhere...... While not really an AutoIt question persay, it is likely what I would use to solve the problem and I know there are lots of folks here way smarter than I that may be able to figure out this riddle......... Link to comment Share on other sites More sharing options...
GoogleDude Posted December 30, 2008 Share Posted December 30, 2008 There is a dos command I think found in the resource kit. A tool I think for xp/2003 and im sure vista that will allow you to change user permissions (could be used in run() ). then regwrite() your new updated data. that was the first thing thing that came to mind outside of searching the forum for "registry permissions". This of cource asuming it is a permissions issue. my .02 cents. GoogleDude Link to comment Share on other sites More sharing options...
Pain Posted December 30, 2008 Share Posted December 30, 2008 Look at RunAsSet in the helpfile. Link to comment Share on other sites More sharing options...
azure Posted December 30, 2008 Share Posted December 30, 2008 HKCU is mounted in the HKEY_USERS hive. You can just jump into the User's SID key within? Link to comment Share on other sites More sharing options...
zenmaster Posted December 31, 2008 Author Share Posted December 31, 2008 HKCU is mounted in the HKEY_USERS hive. You can just jump into the User's SID key within?Thanks for all the Help......I'm gonna play around today............. 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