Hmmmmm...reading through my script and it is not so much different than the way you use PriMapState. The only thing is that I check if the printer exists like this:

 Code:
;Set printer name.
$printer = "\\" + $printerserver + "\Printer1"
;Check group membership.
If InGroup("GROUPNAME")
	;Check if the printer is already installed.
	If Not PriMapState($printer)
		;Printer is not installed. Add printer.		
		$rc = AddPrinterConnection($printer)
	EndIf
EndIf


I did update the drivers on the server to support Windows 7.


Edited by Mart (2010-05-04 09:14 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.