Sign in to follow this  
Followers 0
shornw

Remote registry editing

2 posts in this topic

Can anyone offer any suggestions. I am trying to implement the following for certain domain users but not all :-

RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel", "ConnectionsTab", "REG_DWORD", 1)

unfortunately by default, users only have read access to Policies. I have tried RunAs using a local admin account and a domain admin account but this also cannot change the key.

Any ideas gratefully received


[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

Share this post


Link to post
Share on other sites



To write to the "current user" registry hive of another user, you need to determine the SID of the user. You then write to that entry in the registry. So you'd run your script with admin privs, and do something like this:

#Include <Security.au3>

$sAccount = @UserName ; Change this to whatever user you need to work with.
$SID = _Security__LookupAccountName($sAccount)

RegWrite("HKEY_USERS\" & $SID[0] & "\Software\Policies\Microsoft\Internet Explorer\Control Panel", "ConnectionsTab", "REG_DWORD", 1)

Hope this gets you where you need to be.

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