I am having some weird problem with my login script. For some reason it will map the appropriate drives about 50% of the time and the other times it will miss mapping a drive or two. There is no consistency of which drives it does or doesn't map. I researched the previous posts and tried to add the /persistent to to the Use F: /delete, but it still does the same thing. Any help would be appreciated.
Code:
Code:
;; All domain users get the following directories mapped - P: is the Company
;; Public directoy and Z: is the Users personal directory.
;; Assign the public and user directories.
? "Mapping Public Directory for Domain Users"
? "Mapping Users Directory for Domain Users"
If INGROUP("Domain Users")
Use P: /delete /persistent
Use P: "\\kramer\public"
Use Z: /delete /persistent
Use Z: "\\kramer\%username%"
EndIf
;; The Track-It inventory needs to be configured to run automatically upon login.
;; This section is disabled because we have to figure out how to set the TIA
;; variable for the computer name and workstation ID.
;; Disabled - 12/16/2003
;; Start the Track-IT! automatic inventory program
;; ? "Mapping Track-IT! Directory for Domain Users"
;; If INGROUP("Domain Users")
;; Use Y: /delete /persistent
;; Use Y: "\\babu\auditshare"
;; run "y:\audit32.exe"
;; EndIF
;; AASCIF - AASCIF Web Support Mappings.
;; Assign WWW Directory for AASCIFWebSupport Users.
? "Mapping WWW Directory for AASCIFWebSupport Users"
If INGROUP("AASCIFWebSupport")
Use R: /delete /persistent
Use R: "\\babu\www"
EndIf
;; Administration - Executive Services Department Mappings.
;; Assign Department (admin) directory for ExecServ Users.
? "Mapping Admin Directory for Executive Services Users"
If INGROUP("ExecServ")
Use F: /delete /persistent
Use F: "\\kramer\admin"
EndIf
;; Administration - Executive Services Admin Mappings.
;; Assign Drives for ExecServAdmin Users.
? "Mapping Drives for ExecServAdmin Users"
If INGROUP("ExecServAdmin")
Use I: /delete /persistent
Use I: "\\kramer\finance"
Use J: /delete /persistent
Use J: "\\kramer\jeanh"
Use K: /delete /persistent
Use K: "\\kramer\claims"
EndIf
;; Administration - HR Mappings.
;; Assign Department (admin) directory for HRUsers.
? "Mapping Admin Directory for HR Users"
If INGROUP("HRUsers")
Use F: /delete /persistent
Use F: "\\kramer\admin"
EndIf
? "Mapping HRvantage Directory for HRvantage Users"
If INGROUP("HRvantage")
Use H: /delete /persistent
Use H: "\\kramer\hrvantage"
EndIf
? "Mapping Paychex Directory for HRDirector, HRAssistant Users"
If INGROUP("HRDirector", "HRAssistant")
Use G: /delete /persistent
Use G: "\\kramer\admin\paychex"
EndIf
;; Auditing - Auditing Userm Mappings.
;; Assign Policydocs and Insops Directories.
? "Mapping Policydocs Directory for Auditing Users"
? "Mapping Insops Directory for Auditing Users"
If INGROUP("AuditUsers")
Use F: /delete /persistent
Use F: "\\kramer\policydocs"
Use G: /delete /persistent
Use G: "\\kramer\insops"
EndIf
;; Claims - Claims Reps Mappings
;; Assign Department (claims) Directory.
? "Mapping Claims Directory for Claims Reps Users"
If INGROUP("ClaimsUsers")
Use F: /delete /persistent
Use F: "\\kramer\claims"
EndIf
;; Claims - Claims Supervisor Mappings
;; Assign Department (claims) Directory.
? "Mapping Claims Directory for Claims Supervisors"
If INGROUP("ClaimsSupervisors")
Use F: /delete /persistent
Use F: "\\kramer\claims"
EndIf
;; Communications - Communications Mappings
;; Assign Department (comm) Directory.
? "Mapping Comm Directory for Communications Users"
$Group = "Comm"
If INGROUP("$Group")
Use F: /delete /persistent
Use F: "\\keith\comm"
EndIf
;; Assign Insops Directory.
? "Mapping Insops Directory for Communications Admin"
If INGROUP("CommAdmin")
Use G: /delete /persistent
Use G: "\\kramer\insops"
EndIf
;; Comp Rehab - Comp Rehab Mappings
;;Assign Department (comprehab) Directory.
? "Mapping CompRehap Directory for Comp Rehab Users"
If INGROUP("CRUsers")
Use F: /delete /persistent
Use F: "\\kramer\comprehab"
EndIf
;; Comp Cost - (Bill Review) User Mappings
;; Assign Department (compcost) Directory.
? "Mapping CompCost Directory for Comp Cost Bill Review Users"
If INGROUP("ccbillreview")
Use F: /delete /persistent
Use F: "\\kramer\compcost"
EndIf
;; Comp Cost - Comp Cost Supervisor Mappings
;;Assign Compcost and Claims Directories.
? "Mapping Compcost Directory for Comp Cost Supervisor"
? "Mapping Claims Directory for Comp Cost Supervisor"
If INGROUP("CCSupervisor")
Use F: /delete /persistent
Use F: "\\kramer\compcost"
Use G: /delete /persistent
Use G: "\\kramer\claims"
EndIf
;; Comp Cost - Comp Cost CCShare Mapping.
;; Assign CCShare Directory.
? "Mapping CCshare Directory for CCShare Users"
If INGROUP("CCShareUsers")
Use L: /delete /persistent
Use L: "\\kramer\ccshare"
EndIf
;; Comp Cost - Comp Cost Secondary Mapping. This mapping is for users that need
;; access to compcost, but are in different departments.
;; Assign compcost directory to users in different departments.
? "Mapping Compcost Directory for Users in Different Departments"
If INGROUP("FinanceVP", "ExecServAdmin", "ClaimsVP", "ClaimsDirector")
Use H: /delete /persistent
Use H: "\\kramer\compcost"
EndIf
;; Finance - Finance Department Mappings.
;; Assign Department (finance) Directory.
? "Mapping Finance Directory for Finance Users"
If INGROUP("Finance")
Use F: /delete /persistent
Use F: "\\kramer\finance"
EndIf
;; Assign Freedom Directory.
? "Mapping Freedom Directory for FreedomFull Users"
If INGROUP("FinanceFull")
Use Y: /delete /persistent
Use Y: "\\babu\freedom"
EndIf
;;IS - IS Department Mappings.
;; Assign Department (IS) Directory.
? "Mapping IS Directory for IS Users"
If INGROUP("IS")
Use F: /delete /persistent
Use F: "\\kramer\is"
Use Y: /delete /persistent
EndIf
;; Assign Drivers Directory.
? "Mapping Drivers Directory for ISSupport Users"
If INGROUP("ISSupport")
Use I: /delete /persistent
Use I: "\\kramer\drivers"
EndIf
;; Assign Trackit and Paychex Directories.
? "Mapping Trackit Directory for ISVP"
? "Mapping Paychex Directory for ISVP"
If INGROUP("ISVP")
Use G: /delete /persistent
Use G: "\\kramer\admin\paychex"
Use S: /delete /persistent
Use S: "\\babu\trackit"
EndIf
;; Loss Prevention - Loss Prevention Department Mappings.
;; Assign Policydocs and Insops Directories.
? "Mapping Policydocs Directory for LP Users"
? "Mapping Insops directories LP Users"
If INGROUP("LPUsers")
Use F: /delete /persistent
Use F: "\\kramer\policydocs"
Use G: /delete /persistent
Use G: "\\kramer\insops"
EndIf
;; LSA - LSA Department Mappings.
;; Assign Department (legal) Directory.
? "Mapping Legal Directory for LSA Users"
If INGROUP("Legal")
Use F: /delete /persistent
Use F: "\\kramer\legal"
EndIf
;; Policy Holder Services Mappings.
;; Assign Policydocs and Insops Directories.
? "Mapping Policydocs Directory for PHS Users"
? "Mapping Insops directories for PHS Users"
If INGROUP("PHSUsers")
Use F: /delete /persistent
Use F: "\\kramer\policydocs"
Use G: /delete /persistent
Use G: "\\kramer\insops"
EndIf
;; Sales - Sales Department Mappings.
;; Assign Policydocs and Insops Directories.
? "Mapping Policydocs Directory for Sales Users"
? "Mapping Insops directories for Sales Users"
If INGROUP("SalesUsers")
Use F: /delete /persistent
Use F: "\\kramer\policydocs"
Use G: /delete /persistent
Use G: "\\kramer\insops"
EndIf
;; Training - this will be setup at a later time.
;; Underwriting - Underwriting Deparment Mappings.
;; Assign Policydocs and Insops Directories.
? "Mapping Policydocs Directory for UW Users"
? "Mapping Insops Directory for UW Users"
If INGROUP("UWUsers")
Use F: /delete /persistent
Use F: "\\kramer\policydocs"
Use G: /delete /persistent
Use G: "\\kramer\insops"
Use H: /delete /persistent
Use H: "\\kramer\underwritingdoc"
EndIf
;; Supervisor Mappings.
;; Assign Supervisor Directory.
? "Mapping Supervisors Directory for Supervisors"
If INGROUP("ClaimsSupervisors")
Use S: /delete /persistent
Use S: "\\kramer\supervisors"
If INGROUP("ClaimsDirector")
Use O: /delete /persistent
Use O: "\\kramer\claimssupervisors"
EndIf
EndIf
;; Check Image Drive Mapping.
;; Assign CheckImage Directory.
? "Mapping CheckImage Directory for CheckImage Users"
If INGROUP("CheckImage", "CheckImageAdmin")
Use K: /delete /persistent
Use K: "\\kramer\check"
EndIf
;; Wisconsin Drive Mapping.
;;Assign Wisconsin Directory.
? "Mapping Wisconsin Directory for Wisconsin Users"
If INGROUP("Wisconsin")
Use W: /delete /persistent
Use W: "\\kramer\wisconsin"
EndIf
;; Teleform Drive Mapping.
;;Assign Teleform Directory.
? "Mapping Teleform Directory for Teleform Users"
If INGROUP("Teleform")
Use U: /delete /persistent
Use U: "\\susan\teleform"
EndIf
Thanks,
Chad
{edit MCA: code-tags}