Does anyone know how to query registry to get RDP listening port of remote server via VBscript

Hi ,

Does anyone know how to query registry to get RDP listening port of remote server via VBscript and also to get rdp status of remote servers ?

Note : Required Vbscript as this has to be run on 2003/2000/2008 servers

September 13th, 2015 3:11am

reg query /?

runs on all versions of Windows.

You can look up the registry key for each machine on the Internet with your favorite search engine.

The port is always 3389.  You can test the post with PortQry or with telnet.

What is it that you are calling "rdp status".  RDP is a protocol.  You can query the service to see if it is running and you can query the event log for errors.  You cannot query RDP.

You can use query to get the status:

QUERY TERMSERVER /?

Free Windows Admin Tool Kit Click here and download it now
September 13th, 2015 3:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics