{"id":25,"date":"2019-09-04T14:45:04","date_gmt":"2019-09-04T12:45:04","guid":{"rendered":"http:\/\/imcom.dk\/?p=25"},"modified":"2023-03-31T12:38:01","modified_gmt":"2023-03-31T10:38:01","slug":"how-to-create-mapped-drives","status":"publish","type":"post","link":"https:\/\/imcom.dk\/index.php\/2019\/09\/04\/how-to-create-mapped-drives\/","title":{"rendered":"How to create mapped drives"},"content":{"rendered":"<p><br \/><br \/><!--StartFragment--><\/p>\n\n\n<p>As always log on to the domain controller and launch the &#8220;Group Policy Management&#8221; app.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1013\" height=\"708\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image.png\" alt=\"\" class=\"wp-image-13\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image.png 1013w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-300x210.png 300w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-768x537.png 768w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/figure>\n\n\n\n<p>Right click &#8220;Group Policy Objects&#8221; and select &#8220;New&#8221;<\/p>\n\n\n\n<p>Type a name for the Policy &#8211; f.ex. &#8220;Driver mapping&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"390\" height=\"173\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-1.png\" alt=\"\" class=\"wp-image-14\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-1.png 390w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-1-300x133.png 300w\" sizes=\"(max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p>I use the same policy for all the drive mappings so I don&#8217;t get 15+ policies.<\/p>\n\n\n\n<p>Right click the newly created policy and select &#8220;Edit&#8230;&#8221;<br>And expand [User Configuration] &#8211; [Preferences] &#8211; [Windows Settings] and select [Drive Maps]<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"731\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-3-1024x731.png\" alt=\"\" class=\"wp-image-16\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-3-1024x731.png 1024w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-3-300x214.png 300w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-3-768x548.png 768w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-3.png 1061w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> Now right click in the content window &#8211; and select &#8220;New&#8221; &#8211; &#8220;Mapped Drive&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"448\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-4.png\" alt=\"\" class=\"wp-image-17\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-4.png 404w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-4-271x300.png 271w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p>In Action, select &#8220;Update&#8221;, this will update create the drive if no drive i mapped, if there is  a mapped drive, then it will update the mapped drive with the new settings.<\/p>\n\n\n\n<p>In location give the server path for the fileshare f.ex. &#8220;\\\\server\\share$&#8221;<\/p>\n\n\n\n<p>Select &#8220;Reconnect&#8221; if the drive should reconnect.<\/p>\n\n\n\n<p>Label as, is optional but could be used to give an easy to understand name to the users f.ex. &#8220;Sales Dept&#8221;.<\/p>\n\n\n\n<p>Select a drive letter from the list.<\/p>\n\n\n\n<p>All other settings can be left alone.<\/p>\n\n\n\n<p>On the &#8220;Common&#8221; tab select &#8220;Run in logged-on user&#8217;s security context (user policy option)&#8221; this is impotant as to do the drive mapping as the logged in user instead of trying to map the drive as the system.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"448\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-5.png\" alt=\"\" class=\"wp-image-18\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-5.png 404w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-5-271x300.png 271w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p>Finally select the &#8220;Item-level targeting&#8221; but setting the checkmark and press &#8220;Targeting,,,&#8221; this allows the drive mapping to only hit the correct target instead of hitting at all users.<\/p>\n\n\n\n<p>There are a lot of options to use to pinpoint the targets, f.ex. &#8220;Organizational Unit&#8221; or &#8220;User&#8221;. But personally I prefer to use &#8220;Security Group&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"800\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-6.png\" alt=\"\" class=\"wp-image-19\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-6.png 807w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-6-150x150.png 150w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-6-300x297.png 300w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-6-768x761.png 768w\" sizes=\"(max-width: 807px) 100vw, 807px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"544\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-8.png\" alt=\"\" class=\"wp-image-21\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-8.png 804w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-8-300x203.png 300w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-8-768x520.png 768w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<p>When selecting a &#8220;Security Group&#8221; it is important to pick the group using the &#8220;&#8230;&#8221; button, and find the group using the Select Group tool. This pickes the right group and adds the correct SID for the group to the policy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"246\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-9.png\" alt=\"\" class=\"wp-image-22\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-9.png 463w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-9-300x159.png 300w\" sizes=\"(max-width: 463px) 100vw, 463px\" \/><\/figure>\n\n\n\n<p>Press OK twice to close the Targeting and drive mapping windows<br>And close the &#8220;Group Policy Management Editor&#8221; to finish editing the policy.<\/p>\n\n\n\n<p>Back on the &#8220;Group Policy Management&#8221; window, select the new policy and select the &#8220;Scope&#8221; tab. Here it shows that the policy is not linked to anything.<\/p>\n\n\n\n<p>To make sure that this policy is added to the users in the correct security groups, we need to link the policy to a point in the AD.<\/p>\n\n\n\n<p>If you have a large AD where there are multiple OU&#8217;s for different departments that needs different drive mappings, then you use the top most OU possible.<\/p>\n\n\n\n<p>For this blogpost I will use the domain root instead, as I add the drive policy here to make sure that all users in the AD will get this policy if they are added to the security groups used in the targeting.<\/p>\n\n\n\n<p>Right click the domain root and select &#8220;Link an Existing GPO&#8230;&#8221; and select the new &#8220;Drive Mappings&#8221; gpo from the list. And press &#8220;OK&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"279\" src=\"http:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-10.png\" alt=\"\" class=\"wp-image-23\" srcset=\"https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-10.png 339w, https:\/\/imcom.dk\/wp-content\/uploads\/2019\/09\/image-10-300x247.png 300w\" sizes=\"(max-width: 339px) 100vw, 339px\" \/><\/figure>\n\n\n\n<p>After this, the users should get their new drives mapped when they logon to their computers, if they are member of the right security groups.<\/p>\n\n\n<p><!--EndFragment--><br>\n<br>\n<\/p>","protected":false},"excerpt":{"rendered":"<p>As always log on to the domain controller and launch the &#8220;Group Policy Management&#8221; app. Right click &#8220;Group Policy Objects&#8221; and select &#8220;New&#8221; Type a&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/imcom.dk\/index.php\/2019\/09\/04\/how-to-create-mapped-drives\/\">Continue reading<span class=\"screen-reader-text\">How to create mapped drives<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"_links":{"self":[{"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imcom.dk\/index.php\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}