Share via

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 Security | Intune | Configuration
Microsoft Security | Intune | Enrollment
Microsoft Security | Intune | Other
0 comments No comments

4 answers

Sort by: Most helpful
  1. 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?

    Was this answer helpful?


  2. 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....
    ??

    Was this answer helpful?


  3. Crystal-MSFT 54,311 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?

    0 comments No comments

  4. Jason Sandys 31,421 Reputation points Microsoft Employee Moderator
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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