Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autodisconnect Of Shared User Not Disconnecting Admin

Status
Not open for further replies.

LincolnMarkV

Programmer
Dec 22, 2003
72
US
Hello,

I use an XP Pro workstation as a "server" running an Access database. I also have my own workstation that I use regularly. My account and password are the same on both machines and I am also the Admin. My problem is the 10 user limit for concurrent connections to my "server". I have changed the registry setting that sets the autodisconnect time to 0 and that works great for everyone but me. The "server" does not log my other computer off after it is idle. This basically limits the "server" to 9 connections.

Is there any way to change this setting so it logs off everyone.

Thanks,
David
 
A zero value is truely not recommended.
However: On the clients:

. Locate and then click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters

NOTE: The client side session is automatically disconnected when the idling time lasts more than the duration that is set in KeepConn. For this reason, the session is disconnected according to the less set duration value between AutoDisConnect and KeepConn.

To modify the timeout duration in the client side during a UNC connection, specify the arbitrary time in KeepConn from registry value.

Locate and then click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service\lanmanworkstation\parameters

Value: KeepConn
Data type : REG_DWORD
Range : 1 to 65535 (sec)
Default value: 600 sec = 10 mins

3. In the right pane, click the autodisconnect value, and then on the Edit menu, click Modify. If the autodisconnect value does not exist, follow these steps: a. On the Edit menu, point to New, and then click REG_DWORD.
b. Type autodisconnect, and then press ENTER.
4. Click Decimal.
5. In the Value data box, type a value <= to the value in minutes for KeepConn above.then click OK.


For the Server:
NOTE: If you set the autodisconnect value to 0 (zero), the autodisconnect feature is not turned off, and the Server service disconnects mapped network drives after only a few seconds of idle time.

To change the default time-out period for the autodisconnect feature of the Server service, open a command prompt, type the following line, and then press ENTER

net config server /autodisconnect:number

where number is the number of minutes that you want the server to wait before it disconnects a mapped network drive. The maximum value for this command is 65,535.

Lastly, write a desktop shortcut that points to the startup entry for your program.

At the end of the .cmd script you write, add the line:

net sessions \\your_xp_server_name /Delete
This immediately closes all sessions with the XP computer.
This ensures you that a connection session will not persist.






____________________________
Users Helping Users
 
Bcastner,

Thanks for the info. I will give this a try after the holidays and post back with my results.

Happy Holidays and thanks for all of the great posts. I have used your advise that you have given to others and really appriciate it.

Happy Thanksgiving to you and your family,
David
 
Can you answer another quick question about this?

How come when I go to the Sessions area in the Computer Management screen, I can see ip addresses for some people and ip address for others. There seems to be no rhyme or reason to it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top