microsoft:server:2016:drvmap_gp
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| microsoft:server:2016:drvmap_gp [2020/03/12 07:58] – created rplecko | microsoft:server:2016:drvmap_gp [2026/05/12 11:52] (current) – sysadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Map Network Drives With Group Policy ====== | ||
| + | Copied from [[https:// | ||
| - | https://activedirectorypro.com/map-network-drives-with-group-policy/ | + | ====Example 1: Map a Department Network Drive Using Group Policy==== |
| + | |||
| + | 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. | ||
| + | |||
| + | 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. | ||
| + | |||
| + | ===Step 1: Create & Link a new GPO=== | ||
| + | |||
| + | **1. Open the Group Policy Management Console** | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | **2. In the Group Policy Management Console, Right Click and Select “Create a GPO in this domain, and Link it here”** | ||
| + | |||
| + | //TIP: This will be a user based GPO so make sure you link the GPO to a location that will target the users. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | **3. Name the new GPO** | ||
| + | |||
| + | You can name the new GPO whatever you like, I’ve named mine “Users – Mapped Drives | ||
| + | |||
| + | I can later add additional drive mappings to this GPO. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | The new GPO is now created and linked, now it’s time to configure the settings. | ||
| + | |||
| + | ===Step 2: Configure GPO Settings=== | ||
| + | |||
| + | **1. On the GPO right click and select edit** | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | **2. Navigate to User Configuration -> Preferences -> Windows Settings -> Drive Mappings** | ||
| + | {{ : | ||
| + | |||
| + | **3. Right Click Drive Mappings, Select New – > Mapped Drive** | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | **4. Configure Drive Mapping Properties | ||
| + | ** | ||
| + | General Tab Settings | ||
| + | |||
| + | * Unordered List ItemIn location put the path to the share/ | ||
| + | * Select a drive letter | ||
| + | * Choose Update for action | ||
| + | * Label as: This is optional but may be beneficial for users. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Common Tab Settings | ||
| + | |||
| + | Select “Run in logged on users’s security context | ||
| + | |||
| + | Select Item-level Targeting | ||
| + | |||
| + | Click the Targeting Button | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Select New Item | ||
| + | |||
| + | Select Organization Unit then select the OU you want to target | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Click OK, Click OK again to close the new drive properties | ||
| + | |||
| + | This completes the GPO settings | ||
| + | ===Step 3: Reboot Computers to Process GPO=== | ||
| + | |||
| + | 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. | ||
| + | |||
| + | I’ve rebooted the computer, now I’ll log in with an account that is in the HR organizational unit. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Once logged I will go to file explorer and check for the mapped drive. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | It works. | ||
| + | |||
| + | 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.3 | ||
| + | |||
| + | |||
| + | ====Example 2: Using Group Policy to Map a Drive for Individual Users==== | ||
| + | |||
| + | This example will map a drive for individual users. This will give the users their own personal folder to save files. | ||
| + | |||
| + | You can create a new GPO or add to your existing one, I have all my drive mappings in one GPO. | ||
| + | |||
| + | 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. | ||
| + | |||
| + | 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. | ||
| + | |||
| + | //I’m not going to repeat every step, I’m basically starting at Step 3 from the first example.// | ||
| + | |||
| + | ===Step 1: Create a New Drive Mapped drive=== | ||
| + | |||
| + | Here are the drive map settings for mapping a drive for an individual user | ||
| + | |||
| + | The %UserName% is a variable that will match the user’s logon name. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Just to be clear you must have folders setup on a network share that matches the location and users logon name. | ||
| + | |||
| + | 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. | ||
| + | {{ : | ||
| + | That is it. | ||
| + | |||
| + | Just have the user log off and back on and it should map the M drive | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Perfect! Now the user is mapping a department drive and a personal drive. | ||
microsoft/server/2016/drvmap_gp.1583999939.txt.gz · Last modified: 2020/03/12 07:58 by rplecko
