GPO - Drive mapping

Calvary IT 11 Reputation points
2020-10-16T17:24:20.853+00:00

The majority of authenticated users are entitled to an H drive, a personal place to store their work related data/file. A home directory is typically the way to provide this personal space, and as you well know, this has been accomplished via login scripts. With a script mapping home directories was always simple using the %username% variable. How can the same variable, or its equivalent, be reliably used when implementing drive mappings using GPO to map drives?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,794 questions
{count} votes

2 answers

Sort by: Most helpful
  1. udara peiris 676 Reputation points
    2020-10-16T23:59:04.653+00:00

    You can do this by editing setting in following path of GPO,
    Navigate to User Configuration -> Preferences -> Windows Settings -> Drive Mappings

    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
    In location put the path to the share/folder you want to map a drive to.
    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

    Refer following for guidance with Screenshots.
    https://activedirectorypro.com/map-network-drives-with-group-policy/

    1 person found this answer helpful.

  2. Gazzoo 21 Reputation points
    2023-09-08T15:25:56.2433333+00:00

    Is the Replace setting still an issue in Windows 10 for GPO drive map settings?

    I would like the drive to be removed if the user is removed from the Group the GPO is applied to.

    0 comments No comments