1.

Solve : Dos Net command to remove user connections from a PC with Shared files?

Answer»

Need to know if there is a dos net command to remove connected users from a PC with shared files but the user has nothing open. 
If there is, I want to create it in a batch command and schedule it to run every hour on the shared PC so that it will automatically disconnect those users.  I'm running Windows XP pro but there is a limit of 10 users.  Sometimes People will connect, open a shared file, close it but then not disconnect which MAY prevent others from logging in. Quote

Any file, print, NAMED pipe, or mail slot session that does not have any activity is automatically disconnected after the AutoDisconnect time has expired; the default for the AutoDisconnect time is 15 minutes. When the session is disconnected, one of the ten connections becomes available so that ANOTHER user can connect to the Windows XP system. Therefore, lowering the AutoDisconnect time can help to reduce some of the problems that users may encounter with the ten-connection limit or the five-connection limit on a system that is not USED heavily for server purposes.

You can configure the AutoDisconnect time by running the following command from a command prompt:
net config server /autodisconnect:time_before_autodisconnect
Specify the time in minutes.
-From Microsoft support.


Discussion

No Comment Found