Here's my script:
 Code:
? "Adding Printers"

IF $Printerlist <> ""
 $Printerarray = SPLIT($Printerlist, ",", -1)
 For each $printer in $printerarray

  IF @INWIN = 1
	IF ADDPRINTERCONNECTION("\\$Printserver\$printer") = 0 
		? "Successfully added printer: $printer"
	ENDIF

	IF INGROUP("TS $printer")
		IF SETDEFAULTPRINTER("\\$Printserver\$printer") = 0
			? "Default printer set to: $printer"
		ENDIF
	ENDIF

  ENDIF
 Next
 ?
ENDIF


? "End Printer Add"


We recently moved from a 2003 server to a 2012...both on our domain and terminal server. The script goes through and adds the servers just fine, but keeps defaulting all users to the same printer no matter which group they are in. It almost "feels" like it's not seeing their group membership. I added an ENUMGROUP and sure enough, it comes back with nothing. The ENUMGROUP bit I added was actually the example from the manual, and it returns nothing at all. The users know how to set their default printer and choose off the print dialog list, but it's frustrating to say the least. Anyone have any help?


Edited by Allen (2016-08-10 10:45 PM)