#13543 - 2002-08-09 09:57 AM
Re: assigning printers to roaming users
|
Anonymous
Anonymous
Unregistered
|
Just checking back and I thought it'd be polite and helpful to post the solution I arrived at.
my script is as follows:
---------------------------
DelPrinterConnection ("\\MyServer\Room 19 Laser") DelPrinterConnection ("\\MyServer\Room 9 Laser") DelPrinterConnection ("\\MyServer\Room 9 Colour Printer") DelPrinterConnection ("\\MyServer\Room 73 Laser")
$room=SubStr(%clientname%,2,2)
Select Case ($room="19") AddPrinterConnection ("\\MyServer\Room 19 Laser") AddPrinterConnection ("\\MyServer\Room 9 Colour Printer") SetDefaultPrinter ("\\MyServer\Room 19 Laser") EndSelect
Select Case ($room="09") AddPrinterConnection ("\\MyServer\Room 9 Laser") AddPrinterConnection ("\\MyServer\Room 9 Colour Printer") SetDefaultPrinter ("\\MyServer\Room 9 Laser") EndSelect
Select Case ($room="73") AddPrinterConnection ("\\MyServer\Room 73 Laser") SetDefaultPrinter("\\MyServer\Room 73 Laser") EndSelect
----------------------------
The file (printer.kix) is called from the user logon script with the line:
-----------------------------
\\MyServer\NETLOGON\Logon\kix32.exe \\MyServer\NETLOGON\Logon\printer.kix
-----------------------------
To admit my ignorance, my major problem was not knowing about the logon share. Once I had that figured, it was simply a case of adding a pause to the script, enabling scripts to be visible in ADU&C, and tweaking the script.
I'm aware this script could be tidied a lot, so i'm open to sugestions!
Thanks to the guys who volunteered the information I used to work out my own script.
(PS %clientname% is used instead of %workstation% to pick up the Citrix client name)
Mark ![[Wink]](images/icons/wink.gif) [ 09. August 2002, 10:02: Message edited by: simps ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 885 anonymous users online.
|
|
|