XP shared printer connection exceeds the maximum value how to do

  


A recent friend's company's network print sharing prints out a problem. All people connect to the printer by sharing the printer, so the problem comes out, some people can use it, some people will report an error, beyond the maximum value of the shared connection. I haven't really encountered it yet. Although I know it better about computers, I have never encountered this problem. I went to the Internet to check it out and find a practical post to share it. I hope it will help everyone.
After checking some information on the Internet, I finally understood that it was the ghost of the WINDOWS operating system. For Windows XP Professional, up to 10 different computers can be connected simultaneously over the network. This limitation includes a combination of resources for all transport and sharing protocols. After the first print is finished, the system will not automatically disconnect. After more than ten people, other people will not be able to connect.
After the problem is solved, the solution is easy to handle. Write a script to clear the connection at a fixed time, and clearing the connection in ten minutes should be a more scientific approach. I thought this idea should be easier to implement, but check the information and found that there is no delay command in the DOS command, but this is not a bad thing, write one yourself. The specific implementation method is as follows:
First, the delay command
Create a text file, which writes a sentence "WScript.sleep 600000", and then save the file as Delay.vbs. The meaning of this sentence is delayed by 10 minutes, and the parameters after the sleep command are counted in milliseconds.
Second, create a formal command, write a DOS batch file, the extension ends with BAT or CMD, the body of the command is as follows:
:Cir net session /delete /y start /wait delay.vbs goto Cir
The meaning of the commands inside are:
NET SESSION /DELETE /Y is used to clean up the session. /Y means no manual confirmation is required.
start /wait delay.vbs START is used to call DOS programs, /wait means exclusive execution, that is, the following commands must be executed before continuing to execute the next instruction.
After the above two files are written, double-click the file behind it, it will automatically open a DOS window, and each time ten minutes will automatically execute the process of clearing the session. In this case, no error will be reported when printing.

Copyright © Windows knowledge All Rights Reserved