Sign in to follow this  
Followers 0
zenmaster

Help Updating Restricted HKCU Registry Keys

5 posts in this topic

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.........

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Look at RunAsSet in the helpfile.

Share this post


Link to post
Share on other sites

HKCU is mounted in the HKEY_USERS hive. You can just jump into the User's SID key within?

Share this post


Link to post
Share on other sites

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.............

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0