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 home


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

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

Most Voted
Newest Oldest
Inline Feedbacks
View all comments
4 years 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

5 years ago

Bedankt, we gaan het hier nu testen 🙂

5 years ago

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