Jump to content
Sign in to follow this  

How to check if runnning script through RDP

Recommended Posts


When running a script through remote desktop, the autorun of CD's is disabled (I went through all the msft docs to configure RDP through options, and the config file...nothing about autorun).

Is there a way to tell when you are, or are not, running the script through RDP?

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post

Link to post
Share on other sites

Check the environment Variables, e.g. for SESSIONNAME

If EnvGet('SESSIONNAME') <> "" Then
      ;You're in a RDP Session!
Edited by hannes08

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.