How to Map a Network Drive Using Group Policy (GPO) in Windows Server

Why Map Network Drives via GPO?

Mapping network drives manually on every client computer in a Windows domain is inefficient and prone to errors. By leveraging Group Policy Objects (GPO) in Windows Server, system administrators can automate this process, ensuring that users automatically receive the correct network shares when they log in.

Step 1: Open Group Policy Management

Log in to your Windows Server domain controller and open the Group Policy Management Console (GPMC). You can do this by pressing Win + R, typing gpmc.msc, and hitting Enter.

Step 2: Create a New GPO

In the console tree, expand your forest, domains, and your specific domain name. Right-click on the organizational unit (OU) where your target users reside, and select Create a GPO in this domain, and Link it here…. Name the GPO something descriptive, such as “Map Shared Drive Z”.

Step 3: Edit the GPO

Right-click the newly created GPO and select Edit. Navigate to the following path:

User Configuration > Preferences > Windows Settings > Drive Maps

Step 4: Configure the Drive Map Properties

Right-click in the empty space of the Drive Maps pane, select New, and then Mapped Drive. Configure the properties as follows:

  • Action: Set to Update (or Create).
  • Location: Enter the UNC path of the shared folder (e.g., \\ServerName\SharedFolder).
  • Reconnect: Check this box to make the drive persistent.
  • Drive Letter: Choose Use and select a specific letter (e.g., Z:).

Click Apply and then OK.

Step 5: Apply and Verify

The policy will apply automatically during the next Group Policy refresh interval. To test it immediately, log in to a client machine as a user in the target OU, open Command Prompt, and run:

gpupdate /force

Open File Explorer, and you should see the mapped network drive successfully mounted.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.