I'm writing a simple login script to get drives and printers mapped at login based on groups. The drives are mapping correcty but the printers don't install. The following is the portion of code for the printers:
Code:
 ;Map Personal and Public shares
$L= "\\ares\" + @USERID
$X= \\ares\hsfdrv + "$"
$N= \\ares\daytonpub
Use L: $L
Use X: $X
Use N: $N

;Group shares
If InGroup("Legal")
$M= \\ares\secure + "$"
Use M: $M
AddPrinterConnection("\\janus\Execs_4100")
AddPrinterConnection("\\janus\Execs_Color")
AddPrinterConnection("\\janus\Execs_Lanier")
SetDefaultPrinter("\\janus\Execs_4100")
EndIf

If InGroup("Call Center")
$M=\\ares\callcenter + "$"
Use M: $M
AddPrinterConnection("\\janus\Call Center 1")
AddPrinterConnection("\\janus\Call Center 2")
AddPrinterConnection("\\janus\Call Center 3")
AddPrinterConnection("\\janus\CC_Lanier")
EndIf

If InGroup("CC Mgmt")
$M=\\ares\callcenter + "$"
$O=\\ares\ccmgmt + "$"
$P=\\chaos2\training + "$"
Use M: $M
Use O: $O
Use P: $P

If @USERID="CForester"
AddPrinterConnection("\\janus\Ops")
AddPrinterConnection("\\janus\Ops_Lanier")
AddPrinterConnection("\\janus\Train_Color")
SetDefaultPrinter("\\janus\Ops")
EndIF
EndIf

If InGroup("Sales")
$M=\\ares\sales + "$"
Use M: $M
AddPrinterConnection("\\janus\Sales")
AddPrinterConnection("\\janus\Train_Color")
AddPrinterConnection("\\janus\Execs_Lanier")
SetDefaultPrinter("\\janus\Sales")
EndIf



'janus' is the name of my print server. The printer names are the same as the share names. Any help would be appreciated.