Hi,
We use Kixtart 4.6 and I stumbled on a issue (also wit older version)
We want to assign a printer based on computermembership of a certain OU.
One of the OU's is called 035, which refers to a classroom number.
The one with problems is OU 241, another classroom
Now with two PC's who both have the 035 numbers in their PCname (ie. PC0355 and PC0357) get the printer which is assigned to classroom (OU) 035, while they should have gotten another printer.
This is the script we use, hopefully someone sees what is the problem.
Part of the code and Select statement
 Code:
;Find computerOU

$objSysInfo = CreateObject("ADSystemInfo") 
$strComputerDN = $objSysInfo.computerName 
$struserDN = $objSysInfo.UserName 

$strUserOU=Split($strUserDN,"OU=")
$strUserOU[0]=""
$strUserOU=Join($strUserOU,"OU=")

$strComputerOU=Split($strComputerDN,"OU=")
$strComputerOU[0]=""
$strComputerOU=Join($strComputerOU,"OU=")

;Assign printer based on computerOU

CASE INSTR($strComputerDN,"035")
	"PC staat in 0.35"+@CRLF
	" "+@CRLF
	ADDPRINTERCONNECTION ("\\SVOL05-PR01\PR0033")
	SETDEFAULTPRINTER ("\\SVOL05-PR01\PR0033")