Forum posts for LogonUI.exe

Changing other user's registry through batch files

Is it possible to change other user HKCU registry from other admin account?

My workflow is:


Install software on admin account.
Installation creates user 'CustomUser'
I need to set some registry keys for this user...


I am able to create registry keys in ProfileList through command:

%windir%System32 unas.exe /profile /user:domain\%targetUser% logonui.exe


But this doesn't creates target key in HKEY_USERS

I also tried impersonation through C# described in : http://www.codeproject.com/Articles/124981/A-Complete-Impersonation-Demo-in-C-NET

But this line throws an exception: Boolean loadSuccess =
LoadUserProfile(tokenDuplicate, ref profileInfo);

Ideal way for me is to change registry just in batch file.

View complete forum thread with replies

Other posts related to LogonUI.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How to tell that the logon screen is currently displayed?
Perl script to gather WMI data on screensaver usage
Changing other user's registry through batch files
LogonUI.exe process doesn't terminate after switching user

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.