"net use" with Azure AD credentials doesn't work.
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!