Solved

Automatically disconnect idle sessions in Windows XP

Posted on 2009-04-13
6
2,041 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
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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 500 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

770 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