• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 859
  • Last Modified:

Log Off Disconnected User

Hello Experts

Is there any way we can identify disconnected user and log then off automatically.

Any example would be really appreciated. please point me to the right direction.

Thanks
0
AsishRaj
Asked:
AsishRaj
2 Solutions
 
InderjeetjaggiCommented:
I use the Group Policy - Computer Config->Admin Templates->Windows Components->Terminal Services->Terminal Server->Session Time Limits. I set "Set time limit for disconnected sessions" to 1 hour, Terminate session when time limits are reached to Enabled. That should automatically log them out without scripting it.

Inder
0
 
AsishRajAuthor Commented:
Can you give me step by step instruction. right from the beginning. i am kinda lost here
0
 
Joseph DalyCommented:
I have used psshutdown in the past to log off users who are no longer at their computers. The only problem with this is that there is no real way to tell if someone is just working really late or if their computer is idle.

http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx 

I would suggest using the psshutdown with the -o and -m switches.
0
 
Malli BoppeCommented:
Follow the instructions from the below link.You can add the other settings as well when creating the group policy.
http://www.windowsnetworking.com/articles_tutorials/Terminal-Services-Group-Policy.html 
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now