Discussion Locked

Release of a network share

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a set up network shares on my w2000 server. I have a client environment of 98 and 2000 pro. I limit the number of connections to a folder with certain applications in it in the share permissions. When the limit is reached no more connections can be made. However when someone closes the application or the folder it does not release the share. The default time of 15 minutes in the registry passes and the share is still not released. If the user logs off the network the share is released by user name but the users computer account still shows up as connected. I need to know how to get the share connection to release both the usr connection and computer account connection in 1 or 2 minutes without the user having to log off.

5 replies

by rabbit_runner

Okay, this will include a registry edit. Here is the ususal caution on editing the registry. Back it up before making any changes.

1. On the server, open up the properties to the share, select sharing, then click on the 'caching' button near the bottom. Turn off all caching.
2.Open the registry using 'regedit'. Go to the following key......
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Add or edit the following item...
Value Name: CachedOpenLimit
Data Type: REG_DWORD
Data: 0 (the default is 5) Change it to 0 (zero)

Add or edit the following item...
Value Name: OplocksDisabled
Data Type: REG_DWORD
Data: 0 (zero)

3. from a command prompt, type the following....
net config server /autodisconnect:-1
(between 'autodisconnect' and '-1' is a colon. It sometimes does not show up in these QA screens.

Reboot your server. This should take care of your problem. Please let me know the results.

Best of luck

by brian

This seems to be fairly common. Most others compain that the disconnect is to soon but either way it is fixed using the same techniques. The following questions have information that explain how to adjust the time to disconnect.

https://www.techrepublic.com
/forumqa/thread_detail.jhtml?thread_id=80200

https://www.techrepublic.com
/forumqa/thread_detail.jhtml?thread_id=67169

This discussion is closed to new replies.