Sharing a printer from Terminal Services connection

Posted on 2012-09-16
Last Modified: 2012-10-17
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?
Question by:seanrhudy
    LVL 16

    Expert Comment

    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.
    LVL 42

    Expert Comment

    by:Davis McCarn
    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.

    Author Comment

    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.
    LVL 16

    Accepted Solution

    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

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
    Like many organizations, your foray into cloud computing may have started with an ancillary or security service, like email spam and virus protection. For some, the first or second step into the cloud was moving email off-premise. For others, a clou…
    How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now