Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

2945

June 28th, 2011 18:00

RDC Auto Logoff on Disconnect

I have a pool of VMs in vWorkspace that are temorarilly assigned to a user access device (UAD) as needed. The UADs are in a open access lab in our library. Sometimes, rather than log out of the VM, students will simply power off the UAD. This leaves me with a bunch of VMs in vWorkspace listed as "Disconnected". What would be the best way to go about performming a "logoff" automatically after a session has been "disconnected" after a set amount of time?

-Many thanks for your thoughts,

Aaron

4 Posts

June 28th, 2011 18:00

I am aware that this can be done via GPO but I was wondering if there was a way to configure vWorkspace to handle it.

30 Posts

June 28th, 2011 19:00

Aaron, there is no built-in way to do this right now.  But sounds like a great candidate for a slick vWorkspace powershell script:

1. periodically search for disconnected VMs

2. add VMs to temporary list

   a. if VM doesn't exist in list, add it with current timestamp

   b. if VM exists, do nothing.

   c. remove any VMs no longer disconnected from list

3. look for VMs in list with timestamp older than specific limit and send logoff message

4. rinse and repeat.

No Events found!

Top