I have a test environment.
I want to use automation to check the desktop status of View, than, reset the desktop if the status of desktop is connection.
And, When the status of desktop is connection, how to check whether the user connect to desktop( the session is active ) .