{"id":2211,"date":"2018-07-13T10:45:11","date_gmt":"2018-07-13T10:45:11","guid":{"rendered":"http:\/\/activedirectorypro.com\/?p=2211"},"modified":"2023-09-10T15:09:36","modified_gmt":"2023-09-10T15:09:36","slug":"map-network-drives-with-group-policy","status":"publish","type":"post","link":"https:\/\/activedirectorypro.com\/map-network-drives-with-group-policy\/","title":{"rendered":"How To Map Network Drives With Group Policy (Complete Guide)"},"content":{"rendered":"\n
In this guide, I\u2019ll show you step by step instructions on how to map network drives with Group Policy.<\/p>\n\n\n\n
If you’re still using login scripts then it\u2019s time to switch to Group Policy.<\/p>\n\n\n\n
Mapping drives with group policy is very easy and requires no scripting experience.<\/p>\n\n\n\n
Bonus:<\/strong> It can actually speed up the user logon process.<\/p>\n\n\n\n I’ll show you two examples, the first one is mapping a drive for a department, the second will map a drive for individual users.<\/p>\n\n\n\n In addition, I will use item level targeting to map drives based on specific conditions like group membership, OU, operating system, etc.<\/p>\n\n\n\n The ability to map a network drive with Group Policy was introduced in Server 2008.<\/p>\n\n\n\n Logon scripts are a thing of the past.<\/p>\n\n\n\n Logon scripts can actually slow computers down. Yes, group policy is faster.<\/p>\n\n\n\n Unless you have some crazy complex script that does something that Group Policy cannot do then there is no reason not to use it.<\/p>\n\n\n\n Mapping Drives with Group Policy has the following advantages:<\/p>\n\n\n\n Now let’s move on to some examples of mapping drives with group policy.<\/p>\n\n\n\n In this example, I’m going to map a network drive for the HR department. I’ll use item level targeting so it only maps this drive for users in the HR organizational unit.<\/p>\n\n\n\n You could also use a Security Group to target a specific group of users. This will map to a network share that only the HR department has access to.<\/p>\n\n\n\n 1. Open the Group Policy Management Console<\/p>\n\n\n\n 2. In the Group Policy Management Console, Right Click and Select \u201cCreate a GPO in this domain, and Link it here\u201d<\/p>\n\n\n\n TIP:<\/strong> This will be a user based GPO so make sure you link the GPO to a location that will target the users. I have all of my users separated into an OU called ADPRO Users, I\u2019ll create and link the GPO there.<\/p>\n\n\n\n 3. Name the new GPO<\/p>\n\n\n\n You can name the new GPO whatever you like, I\u2019ve named mine \u201cUsers – Mapped Drives<\/p>\n\n\n\n I can later add additional drive mappings to this GPO.<\/p>\n\n\n\n The new GPO is now created and linked, now it’s time to configure the settings.<\/p>\n\n\n\n 1. On the GPO right click and select edit<\/p>\n\n\n\n 2. Navigate to User Configuration -> Preferences -> Windows Settings -> Drive Mappings<\/p>\n\n\n\n 3. Right Click Drive Mappings, Select New – > Mapped Drive<\/p>\n\n\n\n 4. Configure Drive Mapping Properties<\/p>\n\n\n\n General Tab Settings<\/p>\n\n\n\n Common Tab Settings<\/p>\n\n\n\n Select \u201cRun in logged on users\u2019s security context<\/p>\n\n\n\n Select Item-level Targeting<\/p>\n\n\n\n Click the Targeting Button<\/p>\n\n\n\n Select New Item<\/p>\n\n\n\n Select Organization Unit then select the OU you want to target<\/p>\n\n\n\n Click OK, Click OK again to close the new drive properties<\/p>\n\n\n\n This completes the GPO settings<\/p>\n\n\n\n For the GPO to run I will need to reboot the users PC or run gpupdate \/force. The next time a user from the HR department logs in they should see a mapped drive.<\/p>\n\n\n\n I’ve rebooted the computer, now I’ll log in with an account that is in the HR organizational unit.<\/p>\n\n\n\n Once logged I will go to file explorer and check for the mapped drive.<\/p>\n\n\n\n It works.<\/p>\n\n\n\n Now, any user I put in the HR folder will get this mapped drive. If you don’t want to use an OU you can also target a group of users by using a Security group.<\/p>\n\n\n\n This example will map a drive for individual users. This will give the users their own personal folder to save files.<\/p>\n\n\n\n You can create a new GPO or add to your existing one, I have all my drive mappings in one GPO.<\/p>\n\n\n\n This example requires a folder to be setup on a network share that matches the user’s logon name. You will want to modify the NTFS permissions so the individual user is the only one that has permissions to it.<\/p>\n\n\n\n I’ll be using Mark Foster as an example, the logon name is mfoster so I’ll need a folder setup on a network share called mfoster.<\/p>\n\n\n\n I’m not going to repeat every step, I’m basically starting at Step 3 from the first example.<\/p>\n\n\n\n Here are the drive map settings for mapping a drive for an individual user<\/p>\n\n\n\n The %UserName% is a variable that will match the user’s logon name.<\/p>\n\n\n\n Just to be clear you must have folders setup on a network share that matches the location and users logon name.<\/p>\n\n\n\n My file server is file1, the share is users and in the user’s folder is a folder for each user. Screenshot below of users folder on file1 server.<\/p>\n\n\n\n That is it.<\/p>\n\n\n\n Just have the user log off and back on and it should map the M drive<\/p>\n\n\n\n Perfect! Now the user is mapping a department drive and a personal drive.<\/p>\n\n\n\n I hope you found this guide useful. If you have questions or comments post them below.<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" In this guide, I\u2019ll show you step by step instructions on how to map network drives with Group Policy. If you’re still using login scripts then it\u2019s time to switch to Group Policy. Mapping drives with group policy is very easy and requires no scripting experience. Bonus: It can actually speed up the user logon process. … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2233,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1833],"tags":[],"_links":{"self":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/2211"}],"collection":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/comments?post=2211"}],"version-history":[{"count":2,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/2211\/revisions"}],"predecessor-version":[{"id":38551,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/2211\/revisions\/38551"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/media\/2233"}],"wp:attachment":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/media?parent=2211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/categories?post=2211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/tags?post=2211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Logon Scripts VS Group Policy<\/h2>\n\n\n\n
\n
Example 1: Map a Department Network Drive Using Group Policy<\/h2>\n\n\n\n
Step 1: Create & Link a new GPO<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Step 2: Configure GPO Settings<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Step 3: Reboot Computers to Process GPO<\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Example 2: Using Group Policy to Map a Drive for Individual Users<\/h2>\n\n\n\n
Step 1: Create a New Drive Mapped drive<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Related Content<\/h3>\n\n\n\n
\n