Sign in to follow this  
Followers 0
jdelaney

How to check if runnning script through RDP

4 posts in this topic

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



#3 ·  Posted (edited)

Check the environment Variables, e.g. for SESSIONNAME

If EnvGet('SESSIONNAME') <> "" Then
      ;You're in a RDP Session!
   EndIf
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

session name, perfect! one is console (local), other has rdp and gibberish.

Thanks.


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

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  
Followers 0