Problem mapping a drive while signed into created azure user

Nuno Gomes 0 Reputation points
2026-06-30T14:37:22.2066667+00:00

I've been trying to map a drive for a file storage using the provided script in the connect section. I believe the problem lies within the kerberos system. I've setup everything correctly (i assume), logged into the created user in windows (which has all the right permission) but when i run the script i get the error "New-PSDrive : The specified network password is not correct".
Since i was able to sign into the microsoft account and into the azure portal using the credentials, i assume those are correct.
Can anyone help?

Im using windows 10 in the lastest update.

Azure Files
Azure Files

An Azure service that offers file shares in the cloud.


1 answer

Sort by: Newest
  1. Vinodh247-1375 44,716 Reputation points Volunteer Moderator
    2026-07-05T12:42:23.41+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    This is almost always not a wrong password issue but an identity mismatch with Kerberos. When mapping Azure file shares using AD or AAD DS, the credentials used for SMB auth must be the domain identity (for example, DOMAIN\username or ******@domain.com tied to AD), not the Microsoft account login used for the Azure portal. If you are using Azure Files with AD integration, ensure the storage account is domain-joined, your VM or machine is also domain-joined, and you are logged in with that domain user. Also verify SPN and Kerberos ticket using klist. If you are using AAD Kerberos (preview scenarios), make sure the device is Azure AD joined and you are using the correct UPN format. In short: portal login working does not mean SMB/Kerberos auth will work; align the identity type and domain join properly.

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    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.