Timed cleanup of connection sessions on windows shared printer machines

Source: Internet
Author: User


"Network Printer" is to connect a common printer to a common PC for sharing, and then everyone connects to this PC for printing. During use, a problem may occur: Some colleagues cannot print and re-Add the printer to prompt that the printer cannot be accessed. View computer management-shared folder-sessions and find that there are already 10 sessions, because XP Pro and 2 K Pro both limit the number of concurrent network connections to 10, when the concurrency is full, new users cannot connect to this computer to print. Use net config server/autodisconnect in CMD: 2 it is useless to change the idle automatic disconnection time to 2 minutes, the session will still be full, and the idle time will not be automatically broken for several hours. -- If this method is invalid after testing, you can use the following method to "clear connections": www.2cto.com 1. create a batch file clear. bat. The content is net session/delete/y, which is used to clear network sessions./y indicates that deletion is not required. 2. add to task scheduler, start-Appendix-System Tools-Task Scheduler, add scheduled task-next-browse, and select clear. bat-daily-set the start time-enter the user name and password-open the Advanced properties of the task, Plan-advanced, check the repeated tasks, and set the repetition interval (30 minutes) and the duration (24 hours ). Done. Sessions will be cleared every 15 minutes, and 10 concurrency limits will not be used up.
Author: sjwpython

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.