Solved

Automatically disconnect idle sessions in Windows XP

Posted on 2009-04-13
6
2,018 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now