wow! that's a lot of information. my brain are getting overheated.

my appologies i'm so stupid.

As i'm said i have multiple locations. all location has it's own computernames.
All computernames has 10 charaters:
xx-yyy-zzz
xx = location example LA and CA
yyy = department example FAC (factory) and OFF (office)
zzz = the number of the computer example 001

On all locations some computers are locked-down and they logged in with a citrix virtualdesktop. All these virtual desktops has the computername: VA-CTX-001 (which the number varies)

Example: on location LA there are 2 users in an office and 1 printer.
One user has a regular desktop and logs on this desktop and the other user logs is with citrix. both user must get the same printer.

In the existing situation the logon script is defined in the ActiveDirectory. This logon script is a batch file which start the kix script:
 Code:
 
@Echo Off
net use P: \\server\App$
kix32.exe Printers.kix


and my originally kix script:
 Code:
$computerprt = left (@wksta, 6)

select 

	case $computerprt = "LA-FAC"
		AddPrinterConnection ("\\printserver\printer1")
		SetDefaultPrinter("\\printserver\printer1")

	case $computerprt = "LA-OFF"
		AddPrinterConnection ("\\printserver\printer2")
		SetDefaultPrinter("\\printserver\printer2")

	case $computerprt = "CA-REC"
		AddPrinterConnection ("\\printserver\printer3")
		SetDefaultPrinter("\\printserver\printer3")

	case $computerprt = "CA-ROO"
		AddPrinterConnection ("\\printserver\printer4")
		AddPrinterConnection ("\\printserver\printer1")
		SetDefaultPrinter("\\printserver\printer4")

endselect
 


Can someone make it complete? I would buy you a beer or so, but i'm from the netherlands, so i also can do a paypal deposit if needed ;\)