Map an Networkdrive with Intune

In this blog I will show you a very simple way how to map a network drive with Intune.

Create the Powersehll script

In my Git repository I have put a script to map a network drive. This is only a one-liner. You still have to enter the network address here.

New-PSDrive -Name "K" -PSProvider FileSystem -Root "ADDRESSOFTHEFILESHARE" -Persist

Add the Script in Intune

  • Now we just need to deploy the scripts via Intune. To do this, we open the MEM portal and navigate to Devices -> Scripts
  • Click ADD
  • Enter a name
  • Click Next
  • Upload the script
  • Select Yes at “Run this script using the logged on credentials
  • Click Next
  • Click Add Groups
  • Select a Group and click Select
  • Click Next
  • Click Add

That is an easy and fast way how you can map an network drive with intune.

Stay healthy, Cheers