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

6
Leave a Reply

avatar
2 Comment threads
4 Thread replies
3 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
RicardoJosMaarten Recent comment authors

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

  Subscribe  
newest oldest most voted
Notify of
Maarten
Guest
Maarten

Bedankt, we gaan het hier nu testen 🙂

Ricardo
Guest
Ricardo

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