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
Jannik

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s