Trying to just make a simple vbscript to read the port that RDP is currently using :
strKeyPath = "HKEY_LOCAL_MACHINE\System
\CurrentCo
ntrolSet\C
ontrol\Ter
minalServe
r\WinStati
ons\RDP-Tc
p\PortNumb
er\"
Set Shell = CreateObject("WScript.Shel
l")
currdomain =Shell.RegRead(strKeyPath)
msgbox currdomain
I keep getting an error message. Is regread not suitable then ?
Start Free Trial