How to do complete sign out from VM if user closed VM/ disconnected VM ?

Rushikesh Dhayagude 0 Reputation points
2024-08-13T07:04:16.5866667+00:00

I'm trying to do setting for sign out automatycally from VM when I'll disconnect the VM or close the vm

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
361 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kapr Idriss Conteh 75 Reputation points
    2024-08-13T18:56:59.5666667+00:00

    Hi Rushikesh,

    To ensure a complete sign-out from a VM if a user closed or disconnected it, try these steps below:

    Remote Desktop Settings:

    • Go to the VM settings, find the "Remote Desktop" options.
    • Enable the setting that logs off a user when they disconnect.

    Group Policy Object:

    • Open gpedit.msc.
    • Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits.
    • Enable and configure “Set time limit for disconnected sessions” to a short duration.

    Ensure you test this in a controlled environment first. If it works as expected, you can then implement it in your main environment.


    If the answer is helpful, please click "Accept Answer" and kindly "Upvote" it.
    If you have additional question(s) about this answer, please click "Comment".


    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.