SOLVED
Home

Mapping legacy server shares in Intune on Windows 10 MDM

%3CLINGO-SUB%20id%3D%22lingo-sub-202241%22%20slang%3D%22en-US%22%3EMapping%20legacy%20server%20shares%20in%20Intune%20on%20Windows%2010%20MDM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202241%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20a%20Windows%2010%20full%20MDM%20(AzureAD%2BIntune)%20scenario%2C%20you%E2%80%99ll%20move%20your%20email%2C%20app%20and%20file%20workloads%20to%20Office%20365%20(or%20alternatives).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20your%20pilot%20or%20hybrid%20phase%2C%20you%20may%20still%20need%20access%20to%20certain%20file%20shares%20on%20your%20servers%2C%20so%20here%E2%80%99s%20a%20simple%20PowerShell%20script%20you%20can%20deploy%20using%20Intune%20Device%20Configuration%20that%20maps%20your%20desired%20share.%20Deploy%20multiple%20times%20for%20multiple%20shares%20(or%20groups%20of%20users).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20create%20a%20shortcut%20in%20a%20location%20you%20define%2C%20so%20the%20mapping%20is%20always%20user-driven%2C%20it%20will%20automatically%20suggest%20your%20user%E2%80%99s%20AzureAD%20login%20as%20username.%20You%20can%20of%20course%20customize%20the%20script%20to%20your%20liking%20if%20you%20did%20not%20change%20your%20local%20AD%20upn%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.lieben.nu%2Fliebensraum%2F2018%2F06%2Fmapping-legacy-server-shares-in-your-windows-10-mdm-intune-pilot%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.lieben.nu%2Fliebensraum%2F2018%2F06%2Fmapping-legacy-server-shares-in-your-windows-10-mdm-intune-pilot%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-202241%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313953%22%20slang%3D%22en-US%22%3ERe%3A%20Mapping%20legacy%20server%20shares%20in%20Intune%20on%20Windows%2010%20MDM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313953%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%2C%20I've%20had%20the%20same%20challenge%20and%20came%20up%20with%20this%20solution%3A%20%3CA%20href%3D%22https%3A%2F%2Ftech.nicolonsky.ch%2Fintune-execute-powershell-script-on-each-user-logon%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftech.nicolonsky.ch%2Fintune-execute-powershell-script-on-each-user-logon%2F%3C%2FA%3E.%20Hope%20it%20helps%20you.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55546%22%20target%3D%22_blank%22%3E%40Kevin%20Kaminski%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211788%22%20slang%3D%22en-US%22%3ERe%3A%20Mapping%20legacy%20server%20shares%20in%20Intune%20on%20Windows%2010%20MDM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211788%22%20slang%3D%22en-US%22%3E%3CP%3EI%20wish%20I%20saw%20this%20earlier%20because%20I%20ended%20up%20making%20my%20own.%20Looks%20like%20this%20one%20has%20some%20more%20feature%20rich%20than%20what%20I%20wrote.%20Great%20job!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Jos Lieben
Contributor

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.

 

http://www.lieben.nu/liebensraum/2018/06/mapping-legacy-server-shares-in-your-windows-10-mdm-intune-...

 

2 Replies
Solution

I wish I saw this earlier because I ended up making my own. Looks like this one has some more feature rich than what I wrote. Great job!

Hi guys, I've had the same challenge and came up with this solution: https://tech.nicolonsky.ch/intune-execute-powershell-script-on-each-user-logon/. Hope it helps you. @Kevin Kaminski

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies