• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

Sharing a printer from Terminal Services connection

I'll try to explain this the best that I can....

We have 2 Servers, Server 1 is a TS server, and Server 2 holds our company software.  In order for a home user to print within our software, you have to go into a configurator and set the printer for that user as either a network or locally installed printer.

The user is not using a VPN, they are logging right in using RDP..(I know this is not secure but we cannot change this right this second).  I can share the printer, and easily add it under that user in the configurator software, but when she disconnects and reconnects, the printer is no longer shared...probably because it's a different session number.  What are my options?
0
Sean Rhudy
Asked:
Sean Rhudy
  • 2
1 Solution
 
Kevin HaysIT AnalystCommented:
Normally you will install the printer on the server and share it out.  If a user has a printer that is shared, you will need to install the printer drivers on the server also so that anyone else that connects to the server via TS can have access to it.
0
 
Davis McCarnOwnerCommented:
As of version 6 (June 2007) RDP uses 128 bit encryption and there are options at both ends to improve authentication if you so desire.
Because you have to use whatever the "Configurator" is to set the printer (it doesn't automatically use the default printer?), the only way I can see would be to script a macro which would invoke the configurator and then set it to run as a login script.
0
 
Sean RhudyPresidentAuthor Commented:
Kshays:  The problem is that if I share that printer, then the user reconnects under a different session number, it's no longer shared...

DavisMcCarn: Printing through the RDP session remotely isn't an issue.  The issue is that a different server, other than the terminal services server, needs to consistently see the same shared printer...The problem I'm having with that is what I described above.  I've decided the best way to do this is to have them connect with a VPN, and have that user always use the same IP, then I can install it using the static IP.
0
 
Kevin HaysIT AnalystCommented:
Hi sean,

If you share the printer out on the TS then use a simple vbscript to map the printer each time the user logs in then it doesn't matter what session number he/she logs from.

If a user needs to have access to the printer on a TS then I will use a vbscript to map the printer as he/she logs into the TS.

Option Explicit
Dim netPrinter, UNCpath
UNCpath = "\\YourServer\PrinterName"
Set netPrinter = CreateObject("WScript.Network")
netPrinter.AddWindowsPrinterConnection UNCpath
WScript.Echo "Your printer is mapped from : " & UNCpath
WScript.Quit

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now