;if user is a DHHS Employee, then map drives and printers
IF INGROUP("Dhhs Employee")
;If DHHS user doesn't have a P: Drive, make one
IF NOT EXIST("\\fileserver\dhhs\users\%USERNAME%")
MD "\\fileserver\dhhs\users\%USERNAME%\"
ENDIF
;Map Network Drives that all DHHS users get
USE H: /DELETE /PERSISTENT
USE N: /DELETE /PERSISTENT
USE P: /DELETE /PERSISTENT
USE H: "\\fileserver\dhhs\apps" /PERSISTENT
USE N: "\\fileserver\dhhs\common" /PERSISTENT
USE P: "\\fileserver\dhhs\users\%USERNAME%" /PERSISTENT
;Map Specific Network Drives and Printers Based upon DHHS AD Groups
SELECT
;Map for Corporation Counsel
CASE INGROUP("CorpCounUsers")
IF NOT PRIMAPSTATE("\\trouble\econdev-hp")
ADDPRINTERCONNECTION("\\trouble\econdev-hp")
SETDEFAULTPRINTER("\\trouble\econdev-hp")
ENDIF
IF NOT PRIMAPSTATE("\\trouble\econdev-ricoh")
ADDPRINTERCONNECTION("\\trouble\econdev-ricoh")
ENDIF
;Map for ADRC
CASE INGROUP("ADRCusers")
IF NOT PRIMAPSTATE("\\trouble\adrc-mfp")
ADDPRINTERCONNECTION("\\trouble\adrc-mfp")
SETDEFAULTPRINTER("\\trouble\adrc-mfp")
ENDIF
IF NOT PRIMAPSTATE("\\trouble\adrc-hp")
ADDPRINTERCONNECTION("\\trouble\adrc-hp")
ENDIF