Link to home
Start Free TrialLog in
Avatar of meade470
meade470

asked on

Automatically disconnect idle sessions in Windows XP

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
Avatar of johnb6767
johnb6767
Flag of United States of America image

net config server /autodisconnect:3

Where 3 is the time in minutes.....
In a login script..... would be the easiest....
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
Avatar of meade470
meade470

ASKER

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!
ASKER CERTIFIED SOLUTION
Avatar of MightySW
MightySW
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.