Hi,
I'm currently working on a script which takes a computername and a domain username and uses it to retrieve registry information from a remote computer. The purpose of this script is to retrieve some information from the Volatile Environment registry path which we will use for remote support.
After some research I have found that accessing the remote computers HKEY_CURRENT_USER folder in the registry is troubling from a remote computer, but I've found that the HKEY_USERS also provides a way to access this information.
Now I'm searching for a way to let my script search the SID's from the HKEY_USERS folder, find the corresponding username which was entered at the start and show me the corresponding SID and possibly even the accompanying Volatile Environment information.
I'm having the feeling I'm -somewhat- in the right direction, but I can't find the right way to search for the right key. Anyone knows a way to get this working?
A small schematic setup is the following:
Start -> Enter Rem. Computername & Rem. Username -> Script searches for the corresponding SID -> Return Volatile Environment data to Start computer.