Following up on a recent issue with DOS print capture under windows 7 – a user reported that printing to a captured printer appeared to have stopped. On closer investigation it was noted that a net use command issued in a dos session showed drive mappings and printer mapping for LPT2 as Unavailable.
This issue had been noted before on another site and was remedied by issuing a net config server command in the form of
net config server autodisconnect:-1
which turns off the autodisconnect feature.
Some more detail about this …
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
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.
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 turn off the autodisconnect feature, open a command prompt, type the following line, and then press ENTER: