Link to home
Start Free TrialLog in
Avatar of birenshukla
birenshukla

asked on

Can I share a printer using a logon script that was created from an RDP Session?

Our client has a terminal server that they RDP into from multiple sites. One site's firewall died and was replaced by a basic router by the ISP. There was a VPN setup so that the users could print from a dos based program back to their local printers. The program can only print to lpt printers, so we have to use a login script with something like net use lpt1 \\computer\printer so they can print to their printer.

The problem is now without the VPN the server cannot print back to the local client printer (they are setup manually on the server and shared so we can map them to an lpt port using a login script). What I want to know is if it is possible to create a login script of some kind to take the client's default RDP session created printer and share it, so that we can map the printer to an lpt port for printing to work. Setting up a VPN on the server or replacing the dead firewall with a new one would solve the issue, but due to cost and other reasons I want to set it up without doing so if possible.
Avatar of aelegre
aelegre

The only solution I could come up with was a software app called PrintFil: http://www.printfil.com 
It has a free trial and with it I was able to re-direct output from LPT1 to an auto-created printer with a virtual port (TS001). I turned off 'choose' and 'preview' in the options so it just sends the job to the printer without prompting. I'd say if there's a tool out there that costs $$$ to do this then odds are a free solution would be hard to come by but maybe somebody else knows of one. I looked at NET USE and CHANGE PORT and neither of them looked like they can do what you need.


 
ASKER CERTIFIED SOLUTION
Avatar of birenshukla
birenshukla

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial