Tried to add below command before execute the RunAsCurrentUser.exe, not working as the new privilege only applied to users after they log out and log in again.
dos net localgroup Administrators {name of logged on user} /add
Registry inserting action with the aid of RunAsCurrentUser.exe…
dos net localgroup Administrators {name of logged on user} /delete
Any suggestion / guidance will very much be appreciated.
There are a few different ways to edit HKCU, and you do not necessarily need to use RunAsCurrentUser.exe and add admin rights to the user. In fact, I would discourage adding the user to the Admin group temporarily.
Just figure out I can’t import the registry when I’m in RunAsCurrentUser.exe mode is because of the “current user” doesn’t have access right to BES Client program folder. So, I copy out the .reg file to another folder where the current user able to access. It’s work!