How to Remotely Log Off a Stuck RDP Session

 Sometimes when working on a remote server, you may see "Signing out" stuck forever. In such cases, you can forcefully log off the session without restarting the server.




Using Command Prompt:-

qwinsta /server:ServerName

logoff <SessionID> /server:ServerName

Example logoff 2 /server:SP-SQL-BI


Using PowerShell:-

quser /server:ServerName

logoff <SessionID> /server:ServerName


2 comments:

  1. good work have you done in your article
    best software training institute in coimbatore

    ReplyDelete
  2. good article work have you done

    python course in Coimbatore
    java course in Coimbatore
    generative ai course in Coimbatore
    data science course in Coimbatore
    data analytics course in Coimbatore

    ReplyDelete