|
|
|||||||
Does anyone know of a way to read the registry of the local machine inside a terminal session? |
||||||||
|
|
|||||||
What do you mean by "local"? On a Terminal Server(TS), the script runs "locally" on the TS so as far as the script is concerned the TS is local. I suspect however that you mean the "remote" client. |
||||||||
|
|
|||||||
You can use a computername as part of the registry key. Thus you cna read/write from/to remote registries. code:$value=READVALUE('\\COMPUTER\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\','Value') |
||||||||
|
|
|||||||
That of course would depend on the method of connection. Fine if using RDP over TCPIP with name resolution. If no name resolution then the client IP need be determined. If using ICA dial then you're dead in the water. Same may be true if working through a firewall. |