Azure File Share using the Powershell command (New-PSDrive) but got an error "The network resource type is not correct".

Toma, Cristian 6 Reputation points
2022-12-22T16:17:47.87+00:00

Hi all,

I have tried mounting a drive to my computer from the Azure File Share using the Powershell command (New-PSDrive) but got an error "The network resource type is not correct".
I have tried changing different Letters for the Drive , and port 445 it is open .273375-error-powershell.png

![273415-error-powershell.png][2]

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2022-12-22T18:48:45.48+00:00

    @Toma, Cristian Thank you for reaching out to Microsoft Q&A. I understand that you are having issues mounting a drive to your computer where you get the error message- "The network resource type is not correct".

    This error may occur either if port 445 is blocked or if NTLMv1 is enabled.

    Since you mentioned that Port 445 is open, please verify if NTLMv1 is enabled as Azure Files supports only NTLMv2 authentication. Having NTLMv1 enabled creates a less-secure client. Therefore, communication could be blocked for Azure Files.

    To determine whether this is the cause of the error, verify that the following registry subkey is set to a value of 3:
    HKLM | SYSTEM | CurrentControlSet | Control | Lsa > LmCompatibilityLevel

    If not set to 3, please change and set it to 3 and see if that helps. Thank you!

    Please let us know if you have any more questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    3 people found this answer helpful.

  2. Bernardo Reis 0 Reputation points
    2023-04-21T10:21:25.53+00:00

    Check if your machine is Azure AD joined

    0 comments No comments

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.