Avatar of sara2000
sara2000

asked on 

Log on session

We have a few servers(Windows).  Semtech RDP to the servers and disconnect the session instead of logging out.
I would like to know whose session still on so I can alert them to log out.
Sys Admin out there might have a PS script for this. I would appreciate it if you could share it with me.
Powershell

Avatar of undefined
Last Comment
Sam Jacobs
ASKER CERTIFIED SOLUTION
Avatar of Sam Jacobs
Sam Jacobs
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Why don't you use group policy and force logout of disconnected sessions after x minutes?

Avatar of sara2000
sara2000

ASKER

Alex,

We have developers who run a process and leave the session open so we can disconnect them.
Avatar of Sam Jacobs
Sam Jacobs
Flag of United States of America image

Why do you think my response would not give you the information you need?
Powershell
Powershell

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

27K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo