How to Log Off Remote Desktop User Sessions Via PowerShell?

This tool will help the IT Help Desk to select which session state would like to log off, and then all sessions with the selected state will be logged off from all Remote Desktop Session Hosts (RDSH) and Farms.

 
 
 
 
 
5 Star
(2)
3,729 times
Add to favorites
2/4/2020
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • For VDI collections
    1 Posts | Last post July 23, 2018
    • Hello
      This program works with VDI collections? 
      I need to force logff for all users in the VDI collection.
  • Is the PowerShell or SAPIEN version available?
    1 Posts | Last post September 15, 2017
    • Thank you very much for this executable it works very well! Is the PowerShell or SAPIEN version available? I would like to make some modification to the script to appropriate it to my server.
  • No sessions found
    2 Posts | Last post October 21, 2016
    • Downloaded this to my RDS Admin box and to one of our connection brokers (HA pool configuration).  Running this on either box results in "No Remote User Sessions found with..." for any of the options.
      The FQDN for the CB (tried both the load balanced VIP and the actual server) and the collection are both specified correctly.
      This is a RDS 2012R2 farm.
      Nothing in the event log indicating any error.
    • Hello Rob,
      
      Could you please make sure to run the tool as Administrator?
      
      Let me know if it works.
      
      Thanks,
      -Charbel
  • Can I close all domain computer rdp sessions with this?
    1 Posts | Last post April 14, 2016
    • Is it possible to disconnect rdp sessions of all domain computers from the server? if it is, how i do that?
      
      Nice work btw!
  • Required permissions
    2 Posts | Last post November 10, 2015
    • Are the minimum required permissions to run this documented? I have seen a few scripts to log off user sessions but they all seem to need a high level of privilege. We would like to delegate the least amount of rights possible, our service desk are not domain admins for example. 
    • Hello Jm,
      
      The executable script requires to be Run as Administrator locally on the machine.
      
      Please try it and send me back your feedback if it works in your scenario.
      
      Thanks,
      -Charbel