-
Notifications
You must be signed in to change notification settings - Fork 22
Home
Topic | Link |
---|---|
MS Store application link | Click here |
Github Repository | Click here |
Releases | Click here |
Wiki | Click here |
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.
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.
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.
- Distribute the “Intune Network Drive Mapping” application as a new Microsoft Store app in Microsoft Intune on your end devices.
- Setup the ADMX-Template (old method using custom profile and ADMX-Ingestion)
- Configure Intune Network Drive Mapping (old method using custom profile)
- Apply the new policy to end devices.
- Setup Autostart configuration
- Check the configuration state on your device.
Done.
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.
- Login to Intune Management Portal.
- Navigate to Windows > Windows apps.
- Create a new app and select the app type Microsoft Store app (new).
- 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.
- Customize entries as they fit your needs and click Next to continue.
- You can chose to assign Scope Tags or assign the app directly to a group.
- Finish the Wizard by clicking Create.
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
Next you need to download and install the ADMX-Template using ADMX-Ingestion. To do this follow these simple steps:
- Create a custom Windows 10 profile in Microsoft Intune
- Add a new entry to this profile and fill in the values as followed:
- For name use Intune Network Drive Mapping ADMX-Ingestion.
- For the OMA-URI you enter the value ./Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/weatherlights/Policy/IntuneNetworkDriveMapper
- As value you copy and paste the content of the ADMX file.
- 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.
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><DRIVE LETTER>;<PATH TO YOUR SHARE>;<Optional: USERNAME>;<Optional: PASSWORD> With  a new line can be added. | <enabled/><data id="NetworkDriveMappingsList" value="1P; \\server1.domain.local\share22F;\\server1.domain.local\share1;Username;P@assword"/> |
Important: With this configuration method, you can create multiple policies with multiple drives and you can add multiple network mapping polices to your users.
- Distribute the “Intune Network Drive Mapping” application as a new Microsoft Store app in Microsoft Intune on your end devices.
- Import ADMX and ADML templates.
- Create a new policy and configure the desired drive connection.
- Apply the new policy to end devices.
- Setup Autostart configuration
- Check the configuration state on your device.
Done.
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.
- Login to Intune Management Portal.
- Navigate to Windows > Windows apps.
- Create a new app and select the app type Microsoft Store app (new).
- 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.
- Customize entries as they fit your needs and click "Next" to continue.
- You can chose to assign Scope Tags or assign the app directly to a group.
- Finish the Wizard by clicking "Create".
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
- Download the latest archive which includes the needed .admx and .adml files.
- 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.
- 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.
- 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.
- Assign the created policy to a suitable group.
- 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".
- 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.
- 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.
You check the following registry key: HKEY_CURRENT_USER\Software\Policies\weatherlights.com
You can find the log in the following folder: %LOCALAPPDATA%\Packages\HaukeGtze.IntuneNetworkDriveMapping_6bk20wvc8rfx2\LocalCache\Roaming\weatherlights\NetworkShareMapper
.