Skip to main content

MAP NETWORK DRIVE BẰNG GROUP POLICY (GPO)

 Here is a step-by-step guide for Group Policy drive mapping:


Step #1. On a Microsoft Windows Server with the Active Directory role installed, open the Group Policy Management

Step #2. Create a new GPO and give it a name. Then link it to an OU that contains user accounts because Group Policy drive mapping is a user configuration preference. You can also select an option – create a GPO in this domain and link it here, after that use item-level targeting option which will be described below.

Group Policy Drive Mapping Creating a New GPO

Step #3. Right-click the new Group Policy object and go to User Configuration -> Preferences -> Windows Settings -> Drive Maps.

Step #4. Right-click Drive Maps, select New and then click the Mapped Drive

Group Policy Drive Mapping Creating a Mapped Drive

Step #5. Then you need to configure the settings for the new mapped drive. Here are the options on the General tab:

    • Action — Select an action that will be performed on the shared drives:
      • Create — creates a new mapped drive for users.
      • Delete — deletes a mapped drive for users.
      • Replace — deletes and then creates mapped drives for users.
      • Update — modifies settings of an existing mapped drive for users. This action differs from Replace in that it only updates settings and don’t delete
    • Location — Specify the path to the shared folder or drive that you want to map.
    • Reconnect — Check this option if you want to save the mapped drive in the user’s settings and reconnect it each time they log on.
    • Label as — Specify a custom name for the shared drive. (You can leave this field blank.)
    • Drive Letter — Specify the letter you want the drive to be mapped to. Be careful, because if the workstation is already using the letter you choose here, the Group Policy drive mapping will fail.
    • Connect as — If this setting is blank, the drive will be mapped using the current user account credentials. You can choose to specify a different account here that will be used instead.
    • Hide/Show options — You can also choose to connect the new drive (or all drives) in a hidden state.

Group Policy Drive Mapping Configuring Settings for the New Mapped Drive

Step #6. Click the Common tab to configure these additional settings for all items:

    • Stop processing items in this extension if an error occurs
    • Run in the security context of the user who is currently logged on
    • Remove this item when it is no longer applied
    • Apply once and do not reapply
    • Item-level targeting (see step 7)

Group Policy Drive Mapping Configuring Additional Settings for All Items

Step #7. Item-level targeting allows you to apply drive mappings in a very flexible way. For example you could apply a drive mapping only to a certain OU and the users and computers in it, or only to a certain IP address range. If you enable item-level targeting, click the Targeting button to open the Targeting Editor. Click New Item and select the type of item that you want to apply the new shared drive mapping policy to. The screenshot below shows how to select Organizational Unit and then choose the specific users or computers in that OU. Click OK to close the Targeting Editor.

Group Policy Drive Mapping Configuring Additional Settings for All Items

Step #8. To apply the policy, either reboot the target computers or run gpupdate /force on them. Alternatively, you can go to Group Policy Management, right-click the target OU, and then click Group Policy Update.

Now, whenever a user logs on to any of the targeted computers, the new network drive will be shown in their file explorer.

Source: https://blog.netwrix.com/2019/06/20/map-network-drives-or-shared-folders-using-group-policy-in-8-easy-steps/

Comments

Popular posts from this blog

[RAID] SWITCH FROM AHCI TO RAID WITH INTEL C600 CONTROLLER

I personally have used other ways to do this. Manipulating some registry settings in combination with a safe boot before booting normally does the trick as well. This works with both SATA SSD and M.2 NVMe drives and it enables relatively fast switching between back and forth between AHCI and RAID. I have described this method below.  I have also tried the same process used to switch from RAD to AHCI and that works as well. Switch to safe boot Reboot into BIOS Change from AHCI to RAID in the BIOS Boot into safe mode Turn off safe mode and reboot normally again Nothing else and that also did the trick, just like with moving from RAID to AHCI.  So the link above and my step by step below is here for completeness. You have options in case one of them doesn’t work! Step by step AHCI to RAID registry method This procedure I describe below works on Windows 10 1803/1809 and has been tested on Dell Latitude E6220 an XPS 13 9360. Editing the registry is always a little risky if you

ERROR: MAPIEXCEPTIONNOTFOUND: UNABLE TO SYNCHRONIZE MANIFEST.

 Fatal error MapiExceptionNotFound has occurred. Error details: MapiExceptionNotFound: Unable to synchronize manifest. (hr=0x8004010f, ec=-2147221233) This error will appear due to mailbox corruption to eliminate the above error need repair the mailbox  execute the following shell command then clear the move request and initiate again move request   New-MailboxRepairRequest -Mailbox userID -CorruptionType SearchFolder, AggregateCounts, ProvisionedFolder, FolderView

[Hyper-V] - Lỗi không boot vào được sau khi convert máy vật lý sang máy ảo

XỬ LÝ LỖI KHÔNG BOOT ĐƯỢC VÀO MÁY ẢO SAU KHI CONVERT TỪ MÁY VẬT LÝ BẰNG DISK2VHD Sau khi convert server vật lý sang file VHD để import vào Hyper thì khi start máy ảo lên màn hình máy ảo chỉ nhấp nháy con trỏ chuột trên màn hình đen (blinking cursor) NGUYÊN NHÂN Do máy vật lý sử dụng ổ đĩa cài OS được format theo chuẩn GPT (thay vì MBR như truyền thống, tham khảo GPT và MBR ) XỬ LÝ Bước 1: chuyển ổ GPT thành MBR Copy file VHD của ổ đĩa chứa OS về 1 máy tính Windows 8 trở lên Trên máy Windows 8+ click phải chuột lên file VHD vừa copy, chọn lệnh Mount . Lúc này dùng 1 phần mềm miễn phí (vd: Mini Partition Wizard ) để convert ổ đĩa vừa mount từ GPT  -> MBR Sau đó Delete phần Partition dư ra ở phần đầu ổ đĩa được mount (khoảng vài trăm MB) Set " Active " cho ổ đĩa này để là ổ đĩa boot OS Nhấn Apply để phần mềm thực thi tác vụ Sau khi phần mềm làm xong, tắt phần mềm Mini Partition Wizard, vào My Computer chọn eject ổ đĩa đang mount . Copy file VHD vừa đư