Mapping legacy server shares in your Windows 10 MDM Intune pilot

In a Windows 10 full MDM (AzureAD+Intune) scenario, you’ll move your email, app and file workloads to Office 365 (or alternatives).

In your pilot or hybrid phase, you may still need access to certain file shares on your servers, so here’s a simple PowerShell script you can deploy using Intune Device Configuration that maps your desired share. Deploy multiple times for multiple shares (or groups of users).

It will create a shortcut in a location you define, so the mapping is always user-driven, it will automatically suggest your user’s AzureAD login as username. You can of course customize the script to your liking if you did not change your local AD upn yet.

Gitlab homehttps://gitlab.com/Lieben/assortedFunctions/blob/master/intuneServerShareMapper.ps1

Requirements:

  • Windows 10 (MDM)
  • Intune
  • Direct SMB lan connection to share
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

8 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Axel
Axel
1 year ago

Mooi script, bedankt! Wij vroegen ons nog af waarom je hebt gekozen voor een Form in plaats van de Get-Credential functie of $host.ui.PromptForCredential

Maarten
Maarten
2 years ago

Bedankt, we gaan het hier nu testen 🙂

Ricardo
Ricardo
2 years ago

Bedankt mooi script! Ben even benieuwd wat het commando is voor de lokale login op een nas of domein. Alvast bedankt.