[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 480
  • Last Modified:

how to remotely access to registry

Remotely we can access only (HK-local-machine, & HK-users). but i want to access "HK-current-user " key. Without any desktop sharing.

I went thou~ the following link, http://support.microsoft.com/kb/314837, but still cant,
Any one who is remote access master can helpl?

 
 
 
0
imran786
Asked:
imran786
1 Solution
 
oBdACommented:
You need to determine the SID of the user that's currently logged on, then connect remotely to the registry and look under HKU\<SID>
You can check the SID either through
dsquery user -name <TheUserName> | dsget user -sid
or through Sysinternals' PsGetSid (http://technet.microsoft.com/en-us/sysinternals/bb897417.aspx).
0
 
markpalinuxCommented:


If you try to access "HK-current-user" you will be accessing it as the user you are running the tool as.

What are you trying to do?

I once needed to read what drives users had mapped themselves, in their logon scripts I had made a line.

reg export HKCU\Network \\Servername\Share\%USERNAME%.reg

Another time I had to manually set a registry value in current user and again used reg.exe.

Hope this helps,
Mark
0
 
tigermattCommented:
The HKEY_CURRENT_USER hive is a special hive which is only accessible by the currently logged in user to the system. To access an individual user's registry file, you can either load their NTUSER.DAT file into your HKEY_LOCAL_MACHINE hive, or as already mentioned use the HKEY_USERS along with their SID.

-tigermatt
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now