cosmistack-logo

Firewalls4Less is Live!Shop premium hardware at unbeatable prices.

Shop now
up-close photo of a server in a datacenter

How To Map a Shared Folder as a Network Drive via GPO

By Ryan A on 12/24/24

Description: In this tutorial, we'll walk you through mapping a shared folder as a network folder using Group Policy.

Intro

In a previous article, we walked you through setting up a shared network folder using Active Directory. While your users should be able to access that folder, they find it's a bit cumbersome to locate. Here, we'll walk you through mapping this folder as a drive, which will make it must easier and faster for your users to locate in File Explorer - no need to remember ugly UNC paths!

Steps

1. Open Group Policy Management on your domain controller (DC)

2. Navigate to the Organizational Unit (OU) you want this GPO to apply to

3. Right-click on the OU and click "Create a GPO in this domain, and Link it here"

4. Give your GPO a name. For our example, we'll call it "Map HR Share"

GPO_Drive_Map_5.png

5. Right-click on the newly created GP and click "Edit..."

6. Navigate to User Configuration > Preferences > Windows Settings > Drive Maps

7. In Drive Maps, right-click in the center of the screen and select New > Mapped Drive

GPO_Drive_Map_1.png

8. In the New Drive Properties dialog, enter the Location as the UNC path of your shared folder (in our example, "\\WIN-DC1\HR Files"), provide a "Label as" value (we're using "HR Files") and then select a drive letter to use (we're using "H:"). Use caution and ensure that there are no other GPO's in your domain also mapping a drive to this same letter, as they will be overwritten by the last applied policy.

GPO_Drive_Map_4.png

9. Click "OK" and exit the Group Policy Management Editor

Security Filtering: If you have other users in the OU that you don't want this to apply to, we need to change the settings to make sure we only target the correct security group

11. Click on your GPO and select the "Delegation" Tab

12. In the bottom-right corner, click "Advanced..."

13. In the dialog that opens, highlight "Authenticated Users" and un-check the "Apply group policy" under the "Allow" column, but leave the "Read" permission. Curious why? See this article from Microsoft.

14. Now, click "Add..." and enter the name of the security group that you want this GPO to apply to and click "OK"

GPO_Drive_Map_2.png

15. Highlight the security group, and make sure that the "Read" and "Apply group policy" permissions are checked to "Allow"

GPO_Drive_Map_3.png

16. Click "OK". You can now exit Group Policy Management.

17. (Optional) Log in as a user in the organizational unit (or security group if filtered as explained above) and open File Explorer. Check that the drive has been mapped. Note: your users will need to log out and back in (or reboot) for the drive mapping to take effect.

GPO_Drive_Map_6.png

Conclusion

Simple as that! We hope this tutorial was helpful and as always, please reach out to Cosmistack for all of your infrastructure management and consulting needs! Thanks for reading!

Join our Newsletter!

Stay up to date with the latest news from the IT industry and receive exclusive offers from Cosmistack!

By signing up, you agree to our Privacy Policy and to receive emails from Cosmistack. You can unsubscribe at any time.

Tags:

group policygpodrive mapmapped drivesgpo mapmap gpomap network drive gpomapped drive gpo

Disclaimer: The information provided in this article is for educational and informational purposes only. The techniques, tools, and technologies discussed are intended to be used by individuals with a solid understanding of the subject matter. Readers are entirely responsible for any actions they take based on the content of this article. This blog and its authors do not assume any responsibility for any unintended outcomes, data loss, or issues that may arise from following the instructions or recommendations provided.

Copyright © 2024 Cosmistack, Inc. All rights reserved. | Privacy Policy