Printers in mulitiple sessions on one Terminal Server

Posted on 2011-04-22
Last Modified: 2012-05-11
hello, our client uses Windows 2003 for terminal servers in a 2x farm (group of 2003 terminal servers). Basically we have a script that will give a computer a set of printers based on the computer/thin client name they use to connect to that terminal server. The problem we have is a bit hard to explain but here goes:
Let say we have  ThinClient1 that is in the admin area and we have Thinclient100 that is in the HR department.

When user Bob connects to Thinclient1 from Admin he gets the proper set of printers and the right deafutl printer based off script .

Then Bob decides to go to Thinclient100 at the HR department. He will then get the proper set of printers and the correct default printer.

The problem is when bob goes back to his Thinclient1 session taht he did not log out of, he will see the printers that are meant for the HR deparmtent.

So the problem is where the user logs in last is what printers ALL his sessions on the terminal server will get.

The script appears to work just find because everytime it runs it gives the proper set of printers it just affects other sessions of the same user on that terminal server. Here is a clip of the script we use:

Set Printers = WshNetwork.EnumPrinterConnections
For Loop_Counter = 0 To Printers.Count - 1 Step 2
     WSHNetwork.RemovePrinterConnection Printers.Item(LOOP_COUNTER +1)
Select Case Left(strClient,7)


            WshNetwork.AddWindowsPrinterConnection "\\\ProviderHP2055"
                WshNetwork.AddWindowsPrinterConnection "\\\SecureRX"
                WshNetwork.AddWindowsPrinterConnection "\\\Label1"
            WshNetwork.AddWindowsPrinterConnection "\\\RICOH"
            wshNetwork.SetDefaultPrinter "\\\ProviderHP2055"


            WshNetwork.AddWindowsPrinterConnection "\\\ProviderHP2055"
                WshNetwork.AddWindowsPrinterConnection "\\\SecureRX"
                WshNetwork.AddWindowsPrinterConnection "\\\Label1"
            WshNetwork.AddWindowsPrinterConnection "\\\Exam1"
            WshNetwork.AddWindowsPrinterConnection "\\\Exam2"
            WshNetwork.AddWindowsPrinterConnection "\\\Exam3"
            WshNetwork.AddWindowsPrinterConnection "\\\Exam4"
End Select
Question by:jeepr94
    LVL 1

    Accepted Solution

    According to Article 2003 server cannot do this but i guess 2008 can.
    LVL 1

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Suggested Solutions

    Haven’t we all been there – Mom (or Grandma) needs help on her computer, so calls her IT son (or grandson) for help.  Wouldn’t it be so much easier to just remotely connect to her computer and fix the thing rather than trying to go through it on the…
    Remote Desktop Connections allow you to control remote host machines via the magic of the Internet and RDP (Remote Desktop Protocol). For the purposes of this article we will assume you are connecting from your home PC or laptop to a remote offic…
    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…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 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

    17 Experts available now in Live!

    Get 1:1 Help Now