Forum / Remote Desktop Manager - PowerShell Repository

Is there a way with PowerShell to log off all users that are logged with Devolution

  • Create an Issue
  • Cancel

Hello,

We have worldwide customer service reps remotely logging into servers. Can I create a PowerShell script to logout all connected users?


Thank you
Doug

Clock3 yrs

Hello,

Sorry, but not sure to understand your question.

You want to disconnect your users from what exactly? From the data source? If it's from the data source, what type of data source are you using?

Best regards,



Jeff Dagenais
signaturesignature

Clock3 yrs

Sorry, just learning your product.

The person who has deployed this wants an automated way to detect what users have logged in with your Remote Desktop Manager, and then log them off.

Thanks

Clock3 yrs

Hello,

You want to log them off what? RDP sessions, SSH Sessions, the data source?

You would need to provide us more information on what you want to achieve exactly so that we can help you properly.

Best regards,



Jeff Dagenais
signaturesignature

Clock3 yrs

Log them off from their RDP session.

Clock3 yrs

Hello,

It's possible to see which sessions are opened by clicking on the View -> Opened Sessions -> Global Sessions.
2017+08+03+10+08+25

Then, it will be possible for the administrator to advice the users to disconnect the unused sessions.

The other solution that I can propose is to enable the Automatically close session after XX minutes option in the Advanced section of your entries.
2017+08+03+10+12+30

Best regards,



Jeff Dagenais
signaturesignature

2017-08-03_10-08-25.jpg
2017-08-03_10-12-30.jpg
Clock3 yrs

Great, is there a way, in PowerShell, to get a list of open sessions, and then pipe that to a PowerShell function that disconnects them?

Is there a way to do this in PowerShell `Get-OpenSession | Close-RDMSession`, that's optimal, I don't see functions like that in the PowerShell offering that you have. Perhaps there are other PS functions that I can use to script this?

Clock3 yrs

Hello,

You can use these two cmdlets from our PowerShell module to get the opened sessions and close them. But this will work only on the session that are opened from your local Remote Desktop Manager application.

https://help.remotedesktopmanager.com/get-rdmopenedsession.htm
https://help.remotedesktopmanager.com/close-rdmsession.htm

We do not support to get the opened sessions from other users that are connected to the same data source as yours.

Best regards,



Érica Poirier

signaturesignature

Clock3 yrs