Thanks for the replies.... I shall go with either Kix or VBS
The kix code below seems easy enough..
IF INGROUP ("Sample") ADDPRINTERCONNECTION ("\\SERVER1\Sampleprinter1") SETDEFAULTPRINTER ("\\SERVER1\Sampleprinter1") ENDIF
Set WshNetwork = CreateObject("WScript.Network") WshNetwork.AddWindowsPrinterConnection "\\<servername>\<printername>" WshNetwork.SetDefaultPrinter "\\<servername>\<printername>"
Thanks heaps. You have all been so helpful
Rose -----Original Message----- From: Jeff Durbin [mailto:techlists@xxxxxxxxxxxxx] Sent: Monday, July 26, 2004 5:08 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Setting up network Printers on Windows 2003 Terminal Server issue
You can add a script to the logon process that adds printer connections for users based on group. If you want slow but easy, you can use IFMEMBER from the ResKit, but calling an EXE 100 times (once for each printer) from a CMD will take forever. You can also test group membership and add printer connections in VBScript or Kix which will be much faster than IFMEMBER.
JD
-----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Rosemary Sarkis Sent: Monday, 26 July 2004 7:22 p.m. To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Setting up network Printers on Windows 2003 Terminal Server issue
Thanks for the replies
The user has rights as they can browse the printers on the print server and connect/add them. Its a pity they are user specific. I was thinking of maybe setting up all printers as a test user then copying that ntuser.dat to the default user but that may be troublesoon when new printers come onboard..
The users could browse the printers on the print server and select the
one they want to print to but they are not that bright. I want an easy way to display all printers on our print server to each user. I don't want to create new ports on the WTS either as Id have to configure all 100+ printers manually - too time consuming... Its so much easier with Citrix...
Is there anything I can put maybe in a login script that would help - ie if member of group ... add printer .... I really want a simple solution but be flexible for new printers - does such a thing exist???
or do I have to recreate all printers on the WTS box...
Thanks guys
[THIN] Re: Setting up network Printers on Windows 2003 Terminal Server
issue From: "cherie.watts" <cherie.watts@xxxxxxxxxxx> To: thin@xxxxxxxxxxxxx Date: Mon, 26 Jul 2004 14:11:39 +1000 Hi Rosemary
When you map a printer, the connection is created under HKCU. This isn't available to any other users.
However all of the printer drivers are now installed onto the Windows 2003 tse server. So you could just allow your users to map whatever printers they need.
I would enable policy's to prevent them from installing printer drivers.
The only other slightly sensible suggestion would be to create installed printer queues but instead of going to the printer, create a
local port and connect it to the Server\printer sharename. This way there is no contention for the printer. But you will have to re-setup your printer settings.
That's all I can think of.
Cheers
Cherie