Redback
(Getting the hang of it)
2002-09-24 06:39 AM
Terminal Sessions

Does anyone know of a way to read the registry of the local machine inside a terminal session?

Les
(KiX Master)
2002-09-24 02:40 PM
Re: Terminal Sessions

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.


Sealeopard
(KiX Master)
2002-09-24 04:01 PM
Re: Terminal Sessions

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')



Les
(KiX Master)
2002-09-24 04:20 PM
Re: Terminal Sessions

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.