?
Solved

Automatically disconnect idle sessions in Windows XP

Posted on 2009-04-13
6
Medium Priority
?
2,107 Views
Last Modified: 2013-11-05
Is there a way to automatically disconnect idle sessions in Windows XP (via GPO, perhaps). We have a PC that acts as a print server for several PCs and the idle sessions often build up and prevent a user from printing.

Thanks!
Bryan
0
Comment
Question by:meade470
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 66

Expert Comment

by:johnb6767
ID: 24133024
net config server /autodisconnect:3

Where 3 is the time in minutes.....
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 24133026
In a login script..... would be the easiest....
0
 
LVL 20

Expert Comment

by:MightySW
ID: 24133111
Hi,

You can use the Qwinsta and Rwinsta commands.  If you want to use a script and then use task scheduler then have a look at this.  It will get you where you need:

http://www.eggheadcafe.com/forumarchives/windowsterminal_services/May2005/post23161245.asp

HTH
0
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 
LVL 2

Author Comment

by:meade470
ID: 24133133
Thanks for the quick response. I just checked the auto-disconnect setting here...

\System\CurrentControlSet\Services\LanmanServer\Parameters

...and realized it is set to 15 minutes. The way I'm determining Idle Time is by opening Computer Management and selecting Sessions, which shows Connected Time and Idle Time. Maybe I'm not thinking of Idle Time correctly. For example, I have one PC that shows a Connected Time of 4:29:22 and an Idle Time of 1:10:49. Should this PC have been disconnected due to the 15 minute auto-disconnect setting?

Thanks!
0
 
LVL 20

Accepted Solution

by:
MightySW earned 2000 total points
ID: 24133210
Have a look at this:

http://www.wtstek.com/articles/20031210-03-ts-registry.htm

I would check out the MaxDisconnectionTime and MaxIdleTime Keys

HTH
0
 

Expert Comment

by:nucentric
ID: 24577110
Isn't the original question related to SMB Sessions?  They mentioned being in Computer Management and looking in Sessions (which I assume is under Shared Folders).  How is the timeout settings of the Terminal Service protocol related to SMB/File Sharing?  Sorry to pry, just having the same problem.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question