Chapter 18 – Drive Mapping with Group Policy Preferences
Windows Server Group Policy (GPO) Master Handbook
Chapter 18 – Drive Mapping with Group Policy Preferences
Learning Objectives
Deploy and manage mapped network drives using Group Policy Preferences (GPP), security groups, DFS Namespaces, and Item-Level Targeting.
1. Overview
Drive Mapping automatically connects users to shared folders when they sign in. Group Policy Preferences (GPP) provides flexible deployment without logon scripts.
2. GPO Path
User Configuration → Preferences → Windows Settings → Drive Maps
3. Drive Map Actions
Create (new only), Replace (delete/recreate), Update (modify existing), Delete (remove mapping). Update is recommended for most production environments.
4. Configure a Drive Map
Specify Action, Location (UNC path), Drive Letter, Label, Reconnect option, and run in user's security context.
5. Item-Level Targeting (ILT)
Use ILT to map drives based on security group membership, OU, IP range, computer name, operating system, laptop/desktop type, or registry values.
6. Security Group Mapping
Example: Map H: to \\FS01\HR only for the HR security group, and F: to \\FS01\Finance only for Finance users.
7. DFS Namespace
Use DFS paths such as \\company.local\Shares\Documents instead of server names to simplify migrations and improve availability.
8. Permissions
Drive mapping does not grant access by itself. Configure both Share and NTFS permissions correctly on the file server.
9. PowerShell & Verification
gpupdate /force, gpresult /h report.html, Get-SmbMapping, net use, Test-Path \\server\share
10. Troubleshooting
Verify UNC path accessibility, DNS resolution, SMB connectivity, share/NTFS permissions, Item-Level Targeting conditions, and review Group Policy operational logs.
11. Best Practices
Use DFS Namespaces, descriptive drive labels, Update action, security groups instead of individual users, and document all drive mappings.
12. Enterprise Scenario
A company maps H: for Home folders, S: for Shared Data, and D: for Department shares using security groups and DFS Namespaces across multiple branch offices.
13. Interview Questions
What is the difference between Create and Update actions? Why use Group Policy Preferences instead of logon scripts? What is Item-Level Targeting?
14. Practical Lab
Create a shared folder, configure permissions, create a Drive Maps preference, target a security group, run gpupdate /force, sign in as a test user, and verify the mapped drive.
Drive Mapping Reference
Setting | Recommended | Notes |
Action | Update | Preferred for production |
Reconnect | Enabled | Persistent mapping |
Drive Letter | Organization standard | Avoid conflicts |
UNC Path | Use DFS Namespace | High availability |
ILT | Security Groups | Granular targeting |
Run in user's context | Enabled | Access with user credentials |
Labels | Meaningful names | Easy identification |
Microsoft Learn References
Comments
Post a Comment