"net use" with Azure AD credentials doesn't work.

gabriel sztejnworcel 31 Reputation points
2024-12-13T10:18:32.56+00:00

Hi,

I have 2 Windows Server 2025 machines: Server A is standalone, not AD joined and not AzureAD joined. Server B is AzureAD joined but not AD joined. I'm trying to connect to a file share on server B from server A. I ran a net use command with the hostname of server B, with an AzureAD user which is a local admin on server B. I tried the following username formats:
AzureAD\user@mytenant.onmicrosoft.com

AzureAD\user

user@mytenant.onmicrosoft.com

I always get an error: "The user name or password is incorrect.". Looking at the event logs on server B, I see authentication failures for this user, with authentication package NTLM, which seems wrong.

How can I make this work? Thanks!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,570 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,910 questions
{count} votes

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.