Skip to content
Weatherlights edited this page Mar 28, 2024 · 9 revisions

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.

To deploy the App using the Microsoft Store follow these simple steps:

  1. Create a new app and select the app type Microsoft Store app (New).

  2. 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.

  3. Customize entries as they fit your needs and click Next to continue.

  4. You can chose to assign Scope Tags or assign the app directly to a group.

  5. 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

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

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

How does the Tool 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.

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.