I have a fairly basic vbs logon script which currently detects if a user is on a physical desktop or a remote desktop by checking if the %SESSIONNAME% Environment String is 'Console' or not, and then runs the correct elements. This works wonderfully, however I have just begun to play with RDS RemoteApp and have noticed that running RemoteApp sessions seem to trigger the remote desktop elements of the logon script.
Is there any way within the vbs I can detect that the session is not a 'true' RDP session to avoid running unneccessary elements of the script?