When you type the above command and press enter, after a while, PowerShell will ask you to confirm that you want to install the module. Type Yes and press enter.
If you receive any further confirmation, type A and press enter. The installation may take a while.
When the installation is completed, proceeded to step 4.
Connect to your Azure AD tenant by running the command below. You’ll be prompted to enter credentials.
Then, when the credential request popup opens, enter your Azure AD or Microsoft 365 login email. Then, click Next.
Enter the password to the account you entered in step 5. Then, click Sign in. If your user name and password are successfully authenticated, you will be signed in to your Azure AD tenant.
To confirm that you were successfully signed in to Azure AD, confirm that you see information similar to the ones highlighted in the second screenshot below…
Finally, to join your Windows 11 PC to Azure Active Directory with PowerShell, run the command below:
New-AzureADDevice -AccountEnabled $true -DisplayName "My new device" -AlternativeSecurityIds $altsecid -DeviceId $guid -DeviceOSType "OS/2" -DeviceOSVersion "9.3"
Althought the above command is accurate and should work, I have not been able to get it to work. I have spent hours trying to figure out how to generate two required parameters – AlternativeSecurityIds and DeviceId.
Unfortunately, there is no information about this in Microsoft’s own New-AzureADDevice cmdlet documentation. While I’ll continue to work top figure this out, if you have a solution, kindly email me on [email protected]. Alternatively, you can leave a comment at the end of this page.
Frequently Asked Questions About Joining Windows 11 To Azure Active Directory
1. How Do I Join A Computer To The Azure Active Directory Domain?
You can join a computer to the Azure Active Directory domain from Windows Settings => Accounts => Access work or school => Access work or school.
Alternatively, you can use PowerShell to join a Windows 10 or 11 computer to an Azure AD domain. To use PowerShell run the New-AzureADDevice command.
3. How Do I Access Azure Active Directory?
To access Azure Active Directory open the Azure AD portal – aad.portal.azure.com. Then, login with either your Microsoft 365 or Azure AD account
4. What Is the Difference Between Azure Active Directory And Windows Active Directory?
The main difference between Azure Active Directory and Windows (on-premise) Active Directory is that Azure AD is hosted on Microsoft’s cloud while your on-premise AD is installed on a server with your company network.
5. Does Office 365 Include Azure Active Directory?
Yes. Office 365 (now called Microsoft 365) includes Azure Active Directory. You may not know this but Azue AD is the directory service that powers Office 365.
When you create a user in Office 365, you’re in essence creating a user in Azure AD.
To login to Azure AD portal from your Microsoft 365 portal, scroll down the left pane to the Admin centers section. Then, Azure Active Directory – the link will open in a new browser tab.
My Final Thoughts About Joining Windows 11 To Azure Active Directory
Whether your company has a hybrid On-premise-Azure-AD arrangement or just cloud-only Azure AD, you can join a Windows 11 PC to Azure AD.
If you manage a hybrid environment, and have connected your on-prem AD to Azure AD, the two environments will sync. However, if you manage a cloud-only Azure AD, you can use one of the two methods I discussed in this guide to join Windows 11 to Azure AD.
I hope you were able to use this guide to join your Windows 11 PC to Azure AD. If you found the guide helpful, kindly vote Yes to the “Was this post helpful?” question below.
Alternatively, you can share your experience with joining Windows 10 or 11 to Azure Active Directory. To share your experience with us and other readers, use the “LEAVE A REPLY” form at the end of this page.
Finally, you can read more guides to help you solve Windows 11 problems by visiting our Windows 11 How-To guides page.