Mapping a network drive assigns a persistent letter (like Z: or X:) to a remote shared folder on a NAS or a server, making it appear in File Explorer exactly like a physical hard drive. While you can map a drive manually through the graphical interface, deploying it via Group Policy is much more efficient for system administrators. Group Policy allows you to automatically enforce the network drive mapping across the entire computer, ensuring that all users—or specific groups of users—have instant access to the share without having to configure it themselves.
Prerequisites
To use Group Policy, you must be running Windows 11 Pro, Enterprise, or Education. The Home edition does not include the Group Policy Editor. You also need the exact UNC path of the network share you wish to map (e.g., \\192.168.1.50\SharedFiles).
Creating the Drive Map Policy
We will use the Local Group Policy Editor to create a configuration that runs whenever a user logs into the machine.
- Click the Start button, type gpedit.msc, and press Enter to launch the Local Group Policy Editor.
- In the left-hand navigation pane, drill down through the following path: User Configuration > Preferences > Windows Settings > Drive Maps.
- Right-click on Drive Maps, hover over New, and select Mapped Drive.
Configuring the Drive Properties
A new properties window will open where you will define the connection details for the network share.
- In the Action dropdown menu, select Update. (This ensures the drive is created if it doesn’t exist, or updated if the path has changed, without forcefully deleting it every time).
- In the Location field, type the UNC path to your network share (e.g.,
\\ServerName\ShareName). - Check the box next to Reconnect. This tells Windows to automatically attempt to mount the drive upon every subsequent reboot.
- In the Label as field, type a friendly name for the drive (e.g., “Company Marketing Assets”). This is what users will see in File Explorer.
- Under the Drive Letter section, click the Use radio button, and select your preferred letter from the dropdown menu (e.g.,
Z:). - Click Apply, then click OK.
Applying the Policy Instantly
Group Policy changes do not always apply immediately; they operate on a background refresh cycle. To force the computer to read the new rule and map the drive immediately without requiring a reboot, you must manually update the policy engine.
- Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
- Type the following command and press Enter:
gpupdate /force - Wait for the console to state that the User Policy update has completed successfully.
Open File Explorer and click on “This PC”. You should now see your newly mapped network drive sitting alongside your local C: drive, permanently assigned and automatically available for all user sessions.