Good....I have to admit that I always feel a little better when someone else had seen the same problem before \:\/

I was working on the problem just a little bit ago (before seeing your reply) and I changed the script location a bit that seemed to work, but it wasn't at the end, but within the PriMapState IF statement (It doesn't sound like that is a good practice though).

 Code:
For Each $Printer in $oldPrinters  ; enumerate list of all printer names
  If PriMapState($OldSvr + $Printer) ; is it mapped to old server?
    AddPrinterConnection($NewSvr + $Printer)  ; connect to new server
 	if not @error
	    DelPrinterConnection($OldSvr + $Printer)  ; disconnect from old
	EndIf	
	If $defaultprinter = ($OldSvr + $Printer)  ; select old default printer	
		$rc = SetDefaultPrinter($NewSvr + $Printer)
	EndIf
  EndIf

Next  ; check next printer


But I assume you meant after all new printers are added, so after NEXT (I'll try that)

 Code:
For Each $Printer in $oldPrinters  ; enumerate list of all printer names
  If PriMapState($OldSvr + $Printer) ; is it mapped to old server?
    AddPrinterConnection($NewSvr + $Printer)  ; connect to new server
 	if not @error
	    DelPrinterConnection($OldSvr + $Printer)  ; disconnect from old
	EndIf	
  EndIf

Next  ; check next printer

	If $defaultprinter = ($OldSvr + $Printer)  ; select old default printer	
		$rc = SetDefaultPrinter($NewSvr + $Printer)
	EndIf



I'm 98% XP with a few Win7 systems (but adding more soon).

-RBB


Edited by rbbigdog (2010-10-03 08:42 PM)