Solved

how to remotely access to registry

Posted on 2008-06-19
3
471 Views
Last Modified: 2008-06-20
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
Comment
Question by:imran786
3 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 250 total points
ID: 21821154
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
 
LVL 15

Expert Comment

by:markpalinux
ID: 21821162


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
 
LVL 58

Expert Comment

by:tigermatt
ID: 21823654
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question