Intune deploy a network drive to an Azure AD joined Computer

Tom Meeus 141 Reputation points
2022-09-22T07:46:31.363+00:00

Hi all, yes i know there are multiple guides etc but none of them work.

I've tried:
The scheduled task creation and run when a user is loggin in => no succes
Powershell script to map them (https://intunedrivemapping.azurewebsites.net)
Simple stupid thing: New-PSDrive –Name T –PSProvider FileSystem –Root “\fileserver.Whygodwhy.com\TEST” –Persist
the custom URI one with the ADMX ingestion

But it seems when a thing is deployed to a user via Intune it can't do this.

Anybody got an idea?

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,781 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,645 questions
{count} votes

Accepted answer
  1. Crystal-MSFT 45,486 Reputation points Microsoft Vendor
    2022-09-28T01:17:43.1+00:00

    @Tom Meeus , Thanks for your update. I am glad that the network drive mapping is working. And thanks for sharing your solution. To help others who has the same issue, Here, please let me write a brief summary:

    Issue Description:

    ===========================

    Map a on-premise domain network drive on Azure AD join device

    Solution:

    ===========================

    1. Import the Drive mapping ADMX and ADML file.
    2. Import ADMX in Intune.
    3. Create a device configuration profile under "Imported Administrative template(Preview), select the drive letter to configure the remote math.
    4. Connect VPN to intranet and the drive can be accessible.

    Reference link:

    =======================

    https://call4cloud.nl/2021/03/willy-wonka-and-the-drive-letter-factory/
    Note: Non-Microsoft link, just for the reference.

    Thanks for your time and have a nice day!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 12,386 Reputation points MVP
    2023-10-25T07:16:59.1066667+00:00

    Tried to upload admx and adml templates to Intune from link in the anwer post, but it fails. Any ideas?

    User's image

    User's image

    1 person found this answer helpful.

  2. Crystal-MSFT 45,486 Reputation points Microsoft Vendor
    2022-09-27T01:34:27.51+00:00

    @Tom Meeus , Thanks for your update. From your description, I know we map the drive using domain account. As we will login Azure AD joined device using Azure AD account or system account. But these credential can't be used to map drive. So it is failed.

    Based on my research, maybe you can try to add the domain credential into the map drive command to make it works. here is a link I find for your reference:
    https://video2.skills-academy.com/en-us/powershell/module/microsoft.powershell.management/new-psdrive?view=powershell-7.2#example-4-create-a-persistent-mapped-network-drive-using-credentials

    Hope it can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Joao Guimaraes 0 Reputation points
    2024-06-03T18:22:05.95+00:00

    @Crystal-MSFT I've being using this solution but I dont know if Microsoft updated but it stopped working.

    Solution:

    ===========================

    1. Import the Drive mapping ADMX and ADML file.
    2. Import ADMX in Intune.
    3. Create a device configuration profile under "Imported Administrative template(Preview), select the drive letter to configure the remote math.
    4. Connect VPN to intranet and the drive can be accessible.

    someone with the same problem?

    Thanks

    0 comments No comments