2
2
What i want: Load another users registry hive (HKCU aka NTUSER.DAT located in %UserProfile%\UserName on local machine).
^ This works just fine. Inluding the unload command.
The problem is with the reg /import command that seems to import things only to currently logged on users HKCU. I even tried changing the .reg files i want to import, manually to point to the location where the hive is located (in my case HKU/UserName). But even then when i doubleclicked the .reg file it's settings were still imported into my own HKCU.
I also looked into creating the nessesary keys with PowerShell but some of the keys and data to be created is massive (700+ subkeys) so it's not really an option.
Any ideas on how I can do this?
1Try using Runas to load the user profile and run in the context of that user. Something like
runas /user domain\userToImportHiveFor "regedit /import regfile.reg"
perhaps? – Ƭᴇcʜιᴇ007 – 2014-01-27T16:22:40.437