Jump to content

Recommended Posts

Posted

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.
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]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...