Printing Locally while logged in Win2K Terminal Server (AREV Specific)
At 27 OCT 2002 10:58:56PM Dave Bennett wrote:
I have a Win2k workstation with a local printer, that I can print from in windows and dos, until I connect to the terminal server (Win2k). I have created the same printer on the terminal server and shared it with the same name as the workstation and I can attach the printer using the net use command. But connect the the terminal server I can only print in windows and not dos. I have tried lpt1-4 and no ports, and active directory is installed. Any sugestions?
At 28 OCT 2002 11:15AM Tony Marler@Prosolve Software (UK) wrote:
Dave
Your right it doesn't work. Two solutions.
1. Install Citrix Metaframe. Works great and auto detects printers plus lots of other goodies. Costs around £4.5k for base licence.
2. Use the old fashioned NET USE command in a batch command. Similar to below. Note that you have to 'share' your local printer first.
if not "%CLIENTNAME%" == "" goto termsrv
REM For none Terminal Server login
goto end
:termsrv
NET USE LPT1 /DELETE
NET USE LPT2 /DELETE
NET USE LPT1 \\MYPC\HP970
NET USE LPT2 \\MYPC\HPLJ4050
:end
Tony