Any ideas on how to detect during login if the person is using Remote Desktop or locally logging in to the system?

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
0

Cool, another way to attack the problem though.

Thanks for the tip!

Answered 11/06/2006 by: cessna
Senior Yellow Belt

Please log in to comment
1
ORIGINAL:  cessna

Any ideas on how to detect during login if the person is using Remote Desktop or locally logging in to the system?




("Select * FROM Win32_NTLogEvent WHERE Logfile = 'Security'  AND EventType = 4 AND EventCode = 682")
http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct04/hey1026.mspx





Answered 10/30/2006 by: williamp
Orange Belt

Please log in to comment
0

Nevermind, I found a way.

The system variable %sessionname% will return Console if its local or RDP* if its remote.

Answered 10/30/2006 by: cessna
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity