Skip to content
pt1987 edited this page Jan 3, 2025 · 12 revisions

General

Topic Link
MS Store application link Click here
Github Repository Click here
Releases Click here
Wiki Click here

What is this tool about

The tool is a very simple way to automatically connect locally provided network drives on end devices that are managed in Intune. The AD groups already in use today can be used, provided they are synchronized into the existing Microsoft tenant via Entra ID Connect. Previously used group policies can be used to assign the synchronized groups to the newly created drive policies.

How does it work

This is how the Intune Network Drive Mapping checks for new drives:

  • In Intune Network Drive Mapping tool checks wether the network configuration has changed and if so
  • Will try to connect the drives up to 15 times.
  • If a networkdrive is already connected the Intune Network Drive Mapping will check wether the drive maps the currently configured network path.
    • If the network path matches the configuration the drive will be ignored.
    • If the network path does not match the currently configured path the drive will be reconnected.
  • When 15 tries are used up the Intune Network Drive Mapping will go to sleep and wait until another network configuration change will occur.

Old method - Using the Intune Network Drive Mapping tool within your Microsoft Tenant

Important: With this configuration method, you can create a policy with multiple drives, but you can't add further network mappings with additional policies. A user can only use one policy at a time. If you want to assign network drives dynamically and via multiple policies, please use the new method based on a customized ADMX template.

Old method - Brief description

  1. Distribute the “Intune Network Drive Mapping” application as a new Microsoft Store app in Microsoft Intune on your end devices.
  2. Setup the ADMX-Template (old method using custom profile and ADMX-Ingestion)
  3. Configure Intune Network Drive Mapping (old method using custom profile)
  4. Apply the new policy to end devices.
  5. Setup Autostart configuration
  6. Check the configuration state on your device.

Done.


Old method - Detailed description:

Deploy the App using the "Microsoft Store app (new)" app type

The easiest way to deploy the Intune Network Drive Mapping agent is to use the Microsoft Store app (New) type in Intune. This way you will always get the latest release and automatic updates through the Microsoft Store and reduce service tasks.

  1. Login to Intune Management Portal.
  2. Navigate to Windows > Windows apps.
  3. Create a new app and select the app type Microsoft Store app (new).
  4. Click on Search the Microsoft Store app (new) and search for the Intune Network Drive Mapping App from the search field. Select the Intune Network Drive Mapping entry and click the Select button.
  5. Customize entries as they fit your needs and click Next to continue.
  6. You can chose to assign Scope Tags or assign the app directly to a group.
  7. Finish the Wizard by clicking Create.

Setup Autostart

The Network Drive Mapping App will register itself as an automatic startup app. However the autostart is disabled as long as the app has not been started at least once or has an explicit permission. To grant the app an explicit permission we need to setup a Restriction profile in Microsoft Intune.

You can create a new restriction profile or use an existing one. To permit the app you have to go into the App Store section and enter the following value to the startup apps textarea:

HaukeGtze.IntuneNetworkDriveMapping_6bk20wvc8rfx2 Configure startup app

Setup the ADMX-Template (Old method using custom profile)

Next you need to download and install the ADMX-Template using ADMX-Ingestion. To do this follow these simple steps:

  1. Create a custom Windows 10 profile in Microsoft Intune
  2. Add a new entry to this profile and fill in the values as followed:
  3. For name use Intune Network Drive Mapping ADMX-Ingestion.
  4. For the OMA-URI you enter the value ./Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/weatherlights/Policy/IntuneNetworkDriveMapper
  5. As value you copy and paste the content of the ADMX file.
  6. Confirm the entry.

You can now proceed by saving the profile read the next section about configuration and add those values to the profile aswell.

Configure Intune Network Drive Mapping (Old method using custom profile)

To configure the Intune Network Drive Mapping you can create a new Windows 10 custom profile or use the one that ingested the ADMX file. You can add a new entry for each property you want to configure and enter the following values:

OMA-URI Description Default Sample
./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Configuration/Enabled Activates the Intune Network Drive Mapping. Disabled <enabled/> or <disabled/>
./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Configuration/RefreshInterval Sets the refresh interval. 9000 <enabled/> or <data id="RefreshInterval" value="9000"/>
./User/Vendor/MSFT/Policy/Config/weatherlightscom~Policy~IntuneNetworkShareMapper~Configuration/MapPersistent Specifies if the network drive should be mapped persistence. You should not use this setting unless you have issues. Disabled <enabled/> or <disabled/>
./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Policy/NetworkDriveMappings With this entry you define what network shares you would like to map. You can also provide a username and password (But not recommended since they are not encrypted). You need to specify this as followed: <ENTRY NUMBER>&#xF000;<DRIVE LETTER>;<PATH TO YOUR SHARE>;<Optional: USERNAME>;<Optional: PASSWORD>&#xF000; With &#xF000; a new line can be added. <enabled/><data id="NetworkDriveMappingsList" value="1&#xF000;P; \\server1.domain.local\share2&#xF000;2&#xF000;F;\\server1.domain.local\share1;Username;P@assword"/>
Adding a row

New method - Using the Intune Network Drive Mapping tool within your Microsoft Tenant

Important: With this configuration method, you can create multiple policies with multiple drives and you can add multiple network mapping polices to your users.

New method - Brief description

  1. Distribute the “Intune Network Drive Mapping” application as a new Microsoft Store app in Microsoft Intune on your end devices.
  2. Import ADMX and ADML templates.
  3. Create a new policy and configure the desired drive connection.
  4. Apply the new policy to end devices.
  5. Setup Autostart configuration
  6. Check the configuration state on your device.

Done.


New method - Detailed description:

Deploy the App using the "Microsoft Store app (new)" app type

The easiest way to deploy the Intune Network Drive Mapping agent is to use the Microsoft Store app (New) type in Intune. This way you will always get the latest release and automatic updates through the Microsoft Store and reduce service tasks.

  1. Login to Intune Management Portal.
  2. Navigate to Windows > Windows apps.
  3. Create a new app and select the app type Microsoft Store app (new).
  4. Click on Search the Microsoft Store app (new) and search for the Intune Network Drive Mapping App from the search field. Select the Intune Network Drive Mapping entry and click the "Select" button.
  5. Customize entries as they fit your needs and click "Next" to continue.
  6. You can chose to assign Scope Tags or assign the app directly to a group.
  7. Finish the Wizard by clicking "Create".

Setup Autostart

The Network Drive Mapping App will register itself as an automatic startup app. However the autostart is disabled as long as the app has not been started at least once or has an explicit permission. To grant the app an explicit permission we need to setup a Restriction profile in Microsoft Intune.

You can create a new restriction profile or use an existing one. To permit the app you have to go into the App Store section and enter the following value to the startup apps textarea:

HaukeGtze.IntuneNetworkDriveMapping_6bk20wvc8rfx2 Configure startup app

Import a new ADMX template in Microsoft Intune.

  1. Download the latest archive which includes the needed .admx and .adml files.
  2. Unpack the downloaded archive. It contains the following two files:
  • Intune Network Drive Mapping.admx: administrative template
  • Intune Network Drive Mapping.adml: language file for administrative template

Those two files are required for importing a new ADMX template in Microsoft Intune.

Info: ADMX policies contain administrative templates. These in turn contain the metadata of Windows group policies, which can be applied to Windows-based end devices, among other things.

  1. Procedure to import a new ADMX template:

Login to Intune Management Portal

Navigate to Devices > Windows > Configuration > Import ADMX > Click on Import

  • ADMX: "Intune Network Drive Mapping.admx"
  • ADML: "Intune Network Drive Mapping.adml"

Click on "Next" and wait until uploading process is completed.

Setting up new configuration policy for network drive mapping.

  1. Create a new policy for network drive mapping

Login to Intune Management Portal

Navigate to Devices > Windows > Configuration > Policies > Create > New Policy > Windows 10 and later > Templates > Imported Administrative templates (Preview) > Click on Create

Basics tab:

  • Name: Enter a proper name for your policy (Example: Map network Drive "X" Policy)
  • Description: Enter a proper description for your policy (Example: Policy to map Share "\\Path\to\your\Share" under letter "X")

Configuration Settings:

Navigate to User Configuration > Intune Network Drive Mapping > Configuration > Enable Intune Network Drive Mapping

  • Value: Enabled

Important: You must set this value in each network drive mapping policy so that the tool can interpret and apply it.

Navigate to User Configuration > Intune Network Drive Mapping > Drives > Drive X

  • Path: \\Path\to\your\Share

Important: Provide a username and password only if authentication should be done with a dedicated user. Do not supply any values if passthrough authentication should be used (recommended).

You can configure multiple network drive mappings in one policy.

  1. Assign the created policy to a suitable group.

Check configuration on device.

  1. Check that the application Intune Network Drive Mapping is already installed.

You'll find the application at the start menu with the name "Laufwerke verbinden".

  1. Check the currently mapped network drives in your explorer.

If you just configured the new ploicy you should wait a few minutes or you can trigger a manual sync in the company portal or restart your device to get the newest configurations.

Troubleshooting

A network drive does not show up

  • Check wether the drive letter is already in use by another drive (USB drive or hard disk).
  • The configured path may not be connected or not accessible
  • There may be a problem with the permissions on the network path. The user may not have permission to access the location. You can verify this by entering the network path in the explorer address bar and see if it can be accessed.

How can I verify that the configuration is already active?

You check the following registry key: HKEY_CURRENT_USER\Software\Policies\weatherlights.com

Where can I find the log files in case I need to do some more debugging?

You can find the log in the following folder: %LOCALAPPDATA%\Packages\HaukeGtze.IntuneNetworkDriveMapping_6bk20wvc8rfx2\LocalCache\Roaming\weatherlights\NetworkShareMapper.