I have created the below script but when i run it it runs but doesnt map and drives? I get the black dos box open and 3 0's come up so i presume it running the script ok but does nothing??

 Code:
 
;Thomas Coleman 
;Map drives used by all users
;User Drives

USE * /delete 
Use h: /delete /persistent
Use h: "\\pamplona-dfsfs2\users\%USERNAME%"


; You can set the default printer using the following command
; NB. When using the set default printer command it uses the Name of the printer on the server not
; the unc share name - these are not necessarily the same
; SetDefaultPrinter ("\\pamplona-dfsfs2\printershare")

; To delete a printer use the following command
; This also uses the printer name not the UNC path (even though it looks like a UNC path)
; DelPrinterConnection ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")

;To map drives based on user
If @userid = lady		
		Use x: "\\pamplona-dfsfs2\awiredu"  
		?"ERROR " + @ERROR + " - " + @SERROR
EndIf

; Map drive for administrator with Installation files
If InGroup("Administrators")
	Use s: /delete /persistent
	Use s: "\\PAMPLONA-DFSFS2\IT$"
EndIf

; Map drives and printers for users by group membership
If InGroup("Fund of Funds")
	Use j: /delete /persistent
	Use j: "\\pamplona-dfsfs2\fund of funds"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\HP LaserJet 4350 FOF")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\HP3800 FOF Window Bay")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\1st_Floor-RICOH_MPC6000")
	SetDefaultPrinter ("\\pamplona-dfsfs2\1st_Floor-RICOH_MPC6000")
EndIf

If InGroup("PCO ALL")
	Use s: /delete /persistent
	Use y: /delete /persistent
	use s: "\\pamplona-dfsfs2\PCO Marketing"
	use y: "\\pamplona-dfsfs2\PCO Fund"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\HP Color LaserJet 3800 PCO")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\1st_Floor-RICOH_MPC6000")
	
EndIf

If InGroup("Private Equity")
	Use p: /delete /persistent
	Use p: "\\pamplona-dfsfs2\private equity"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_floor-PE-HP_4300_B&W")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-PE -Colour_HP4005")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
	SetDefaultPrinter ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
EndIf

If InGroup("IVA")
	Use i: /delete /persistent
	Use i: "\\sqlpco\iva"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_floor-PE-HP_4300_B&W")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-PE -Colour_HP4005")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
EndIf

If InGroup("oakwood")
	Use o: /delete /persistent
	Use o: "\\sqlpco\oakwood"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_floor-PE-HP_4300_B&W")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-PE -Colour_HP4005")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
EndIf

If InGroup("finance")
	Use f: /delete /persistent
	Use f: "\\pamplona-dfsfs2\finance"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_floor-PE-HP_4300_B&W")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-PE -Colour_HP4005")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
EndIf

If InGroup("infrastructure")
	Use q: /delete /persistent
	Use q: "\\pamplona-dfsfs2\infrastructure"
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_floor-PE-HP_4300_B&W")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-PE -Colour_HP4005")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
EndIf



If InGroup("Reception")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_floor-PE-HP_4300_B&W")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-PE -Colour_HP4005")
	ADDPRINTERCONNECTION ("\\pamplona-dfsfs2\4th_Floor-RICOH_Copier")
	SetDefaultPrinter ("\\pamplona-dfsfs2\4th_Floor_Reception-HP_CP3525")
EndIf

If InGroup("Hedge Fund")
	Use z: /delete /persistent
	Use z: "\\pamplona-dfsfs2\hedge fund"
EndIf

If InGroup("General")
	Use g: /delete /persistent
	Use g: "\\pamplona-dfsfs2\General"
EndIf

If InGroup("HR")
	Use r: /delete /persistent
	Use r: "\\pamplona-dfsfs2\hr"
EndIf