I'm having trouble writing a script that will take the printer(s) attached to the local computer and share them on the server under Terminal services once they log on. For example:
Workstation 1 has a Dot-matrix printer "DMPrinter" attached to LPT1. When he connects to the server using Terminal Services, Terminal Services automatically creates a printer named DMPrinter and that printer will work 100% fine from any and all windows applications. The problem comes when the user needs to print from a DOS based application, the printer has to be given a sharename and then a "net use LPT1 \\server\DMPrinter /persistent:yes" has to be issued for the printer to print to the LPT1 port correctly from DOS.
Does anyone even understand what I'm trying to do, if not please ask questions and I will do my best to answer them.
Workstation 1 has a Dot-matrix printer "DMPrinter" attached to LPT1. When he connects to the server using Terminal Services, Terminal Services automatically creates a printer named DMPrinter and that printer will work 100% fine from any and all windows applications. The problem comes when the user needs to print from a DOS based application, the printer has to be given a sharename and then a "net use LPT1 \\server\DMPrinter /persistent:yes" has to be issued for the printer to print to the LPT1 port correctly from DOS.
Does anyone even understand what I'm trying to do, if not please ask questions and I will do my best to answer them.