Map network drive

andreas bright 581 Reputation points
2021-01-28T12:17:14.807+00:00

Hi,

We have a local QNAP nas device in our office, and we have X: mapped to this drive with same username and password for everyone.
When we work from home, we connect with VPN and access this drive when we click on X:

We have earlier manually mapped this since we do not have any local AD.
What is the simplest way to accomplish this with intune.

Say I join a new computer, I would like the mapping script to run, but since the machine is not able to contact the QNAP device at the time of joining, I would like it not to timeout, just mount the path and don`t bother if it answers.


net use q: \192.168.1.26\temp /user:user password

This is simple, but If I use this and the IP doesnt answer it does not map offcourse.... I just want to force that to happen.

Suggestions

Thanks for any answers

/R
Andy

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,945 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,387 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,327 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Jason Sandys 31,311 Reputation points Microsoft Employee
    2021-01-28T18:24:10.11+00:00

    same username and password for everyone

    I strongly suggest you discontinue this practice as it is terrible security wise for several different reasons.

    There is no method in Intune to map a drive. The best you can do today is use a PowerShell script.

    As for the timeout, there's no way to do this. Mapping a shared drive requires connectivity regardless of the method use to map the drive.

    0 comments No comments

  2. Crystal-MSFT 50,591 Reputation points Microsoft Vendor
    2021-01-29T01:40:01.627+00:00

    @andreas bright , Agree with Jason, based on my testing with net use command, we can't map a net work driver without network connectivity.

    Hope it can help.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments

  3. Nick Loenders 51 Reputation points
    2021-02-18T07:28:46.247+00:00

    but with Powershell, you need to be an admin to allow scripts....
    ??


  4. Nick Loenders 51 Reputation points
    2021-02-19T07:52:40.13+00:00

    But it needs to be signed by an official CA or not??
    or how does one do this?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.