One of the many difficulties you face when going all "Intune" is the matter that you can not network shares as network drives. While my overall recommendation is: Try to migrate to OneDrive and stop using network drives at all you sometimes face a situation where is approach is a little to soon.

However to overcome the lack of support for network drives I have developed a small tool that can solve this issue for you in an elegant manner.

So what do I need before following this guide?
Well you should have at least:OK! I am all set. Lets get going!

1. Aquire the Intune Network Drive Mapping Tool from the Microsoft Store for Business

OK the first thing we need to do is to aquire the Intune Network Drive Mapping Tool. This little tool runs in the background of the client and creates the network drive when the network share becomes available to the client. The tool runs at logon and whenever the network configuration is changed.

The Intune Network Drive Mapping Tool is available here in the Microsoft Store for Business:
Intune Network Drive Mapping Tool

Klicke auf die Grafik für eine vergrößerte Ansicht  Name: networkdrivemapping1.png Ansichten: 0 Größe: 31,6 KB ID: 55

Click Get the app to make the Intune Network Drive Mapping Tool available to your Microsoft Intune.

2. Synchronize the Intune Network Drive Mapping Tool to Microsoft Intune

Well you could also wait a few hours but to speed things up you can synchronize the Microsoft Store For Business from Microsoft Intune so the app becomes available a little faster:
Klicke auf die Grafik für eine vergrößerte Ansicht  Name: networkdrivemapping2.png Ansichten: 0 Größe: 88,5 KB ID: 56
So visit https://endpoint.microsoft.com and navigate to Tenant administration > Connectors and tokens > Microsoft Store for Business and click Sync.

3. Create a configuration for the Intune Network Drive Mapping Tool
Ok having the tool ready is the first step but we still need to configure which drives we want to map. To do this we have do deploy a configuration with ADMX ingestion.
So navigate to Devices > Configuration profiles and create a new custom profile just like this:
Klicke auf die Grafik für eine vergrößerte Ansicht  Name: networkdrivemapping3.png Ansichten: 0 Größe: 8,4 KB ID: 57
Name the profile accordingly and click next to configure the OMA-URI Settings.

The first thing we need to do is to ingest the ADMX template of the Intune Network Drive Mapping Tool. So click Add to create a new row and fill in the form as followed:
  • Name: Intune Network Drive Mapping ADMX-Ingestion
  • Description: This installs the ADMX file.
  • OMA-URI: ./Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/weatherlights/Policy/IntuneNetworkDriveMapper
  • Data type: String
  • Value:
    Code:
    <policyDefinitions revision="1.0" schemaVersion="1.0">
    	<policyNamespaces>
    	  <target prefix="fullarmor" namespace="FullArmor.Policies.39F87E1E_3B48_4B93_AADB_DE96D7BD57AA" />
    	  <using prefix="windows" namespace="Microsoft.Policies.Windows" />
    	</policyNamespaces>
    	<supersededAdm fileName="" />
    	<resources minRequiredRevision="1.0" />
    	<categories>
    	  <category name="IntuneNetworkShareMapper" displayName="$(string.CAT_IntuneNetworkShareMapper)" />
    	  <category name="Configuration" displayName="$(string.CAT_Configuration)">
    	  <parentCategory ref="IntuneNetworkShareMapper"/>
    	  </category>
    	  <category name="Policy" displayName="$(string.CAT_Policy)">
    	  <parentCategory ref="IntuneNetworkShareMapper"/>
    	  </category>
    	</categories>
    	<policies>
    	  <policy name="Enabled" class="User" displayName="$(string.POL_Enabled)" explainText="$(string.POL_Enabled_Help)" key="Software\Policies\weatherlights.com\NetworkDriveMapping" valueName="Enabled">
    	    <parentCategory ref="Configuration" />
    	    <supportedOn ref="windows:SUPPORTED_WindowsVista" />
    	    <enabledValue>
    	      <decimal value="1"/>
    	    </enabledValue>
    	    <disabledValue>
    	      <decimal value="0"/>
    	    </disabledValue>
    	  </policy>
    	  <policy name="RefreshInterval" class="User" displayName="$(string.POL_RefreshInterval)" presentation="$(presentation.POL_RefreshInterval)" key="Software\Policies\weatherlights.com\NetworkDriveMapping" valueName="RefreshInterval">
    	    <parentCategory ref="Configuration" />
    	    <supportedOn ref="windows:SUPPORTED_WindowsVista" />
    	    <elements>
    	      <decimal id="RefreshInterval" key="Software\Policies\weatherlights.com\NetworkDriveMapping" valueName="RefreshInterval" required="true" minValue="1" maxValue="100000" />
    	    </elements>
    	  </policy>
    	  <policy name="MapPersistent" class="User" displayName="$(string.POL_BF4F2902_5773_409D_93BC_F3C585D53ADF)" explainText="$(string.POL_PERSISTENT_Help)" key="Software\Policies\weatherlights.com\NetworkDriveMapping" valueName="MapPersistent">
    	    <parentCategory ref="Configuration" />
    	    <supportedOn ref="windows:SUPPORTED_WindowsVista" />
    	    <enabledValue>
    	      <decimal value="1"/>
    	    </enabledValue>
    	    <disabledValue>
    	      <decimal value="0"/>
    	    </disabledValue>
    	  </policy>
    	  <policy name="NetworkDriveMappings" class="User" displayName="$(string.POL_NetworkDriveMappings)" presentation="$(presentation.POL_NetworkDriveMappings)" key="Software\Policies\weatherlights.com\NetworkDriveMapping" valueName="Policies">
    	    <parentCategory ref="Policy" />
    	    <supportedOn ref="windows:SUPPORTED_WindowsVista" />
    	    <elements>
    	      <list id="NetworkDriveMappingsList" key="Software\Policies\weatherlights.com\NetworkDriveMapping\Policies" valuePrefix="" />
    	    </elements>
    	  </policy>
    	</policies>
    	</policyDefinitions>

So now we have the ADMX in place and can configure Intune Network Drive Mapping Tool by adding the following OMA-URIs:
Name OMA-URI Description Sample Value
Enabled ./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Conf iguration/Enabled Enabled the Intune Network Drive Mapping Tool <enabled/> OR <disabled/>
Refresh Interval ./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Conf iguration/RefreshInterval When the network changes the Network Drive Mapping Tool will check 15 times for a network share to become available. You can configure in ms how long the Network Drive Mapping Tool will wait until it does another retry. <enabled/><data id="RefreshInterval" value="10000"/>
Network Shares ./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Poli cy/NetworkDriveMappings With this setting you can configure the network drives you want to map. Within the value field you can configure a list of network shares like this:
<Entry Number>&#xF000;<Drive letter>;<Path to the network share> &#xF000;
With &#xF000; you can add another line.
<enabled/>
<data id="NetworkDriveMappingsList"
value="1&#xF000;P; \\server1.domain.local\share2&#xF000;2&#xF000;F;\\ server1.domain.local\share1"/>
Map Persistent ./User/Vendor/MSFT/Policy/Config/weatherlights~Policy~IntuneNetworkShareMapper~Poli cy/NetworkDriveMappings If enabled a network share is mapped persistent. Due to the nature of the Intune Network Drive Mapping Tool this is not necessary. <enabled/> OR <disabled/>
When configured the desired settings continue and save the new configuration profile.

4. Allow the Intune Network Drive Mapping Tool as Startup app
Next we need to make sure that the Intune Network Drive Mapping Tool can start up when the user is logging. To do this we need to create or edit a Windows 10 device restriction profile.

Just add the following within the Startup apps textbox:
HaukeGtze.IntuneNetworkDriveMapping_6bk20wvc8rfx2

So it should look a little like this:
Klicke auf die Grafik für eine vergrößerte Ansicht  Name: networkdrivemapping4.png Ansichten: 0 Größe: 74,1 KB ID: 58
5. Assign all profiles to a group
Well you are all set. Now you can assign the following items to a group:
  • The Intune Network Drive Mapping App
  • The profile you created in section 3.
  • The device restriction profile you created or modified in section 4.
6. End-User experience
Well the Intune Network Drive Mapping Tool will work mostly invisible in the background. But here is the result:
Klicke auf die Grafik für eine vergrößerte Ansicht  Name: networkdrivemapping5.png Ansichten: 0 Größe: 4,3 KB ID: 59

When a network share does not get connected you can also force the tool retry the connection. Just launch the tool for the start menu.
Attached Files