Enabling Azure AD JOIN for Windows 10 Devices using PowerShell

Swahela Mulla 95 Reputation points
2023-07-20T12:04:52.2466667+00:00

Hello,

I am currently managing a fleet of Windows 10 devices using Microsoft Intune and Azure AD. My objective is to enable Azure AD JOIN for my Intune-managed Windows 10 devices programmatically using PowerShell.

I have researched various sources, but I couldn't find a suitable solution to accomplish this task. I am looking for guidance or a PowerShell command/API or script that will allow me to enable Azure AD JOIN for my Windows 10 devices seamlessly.

Scenario 1: I want to enable Azure AD JOIN for my Windows 10 devices that are already enrolled in Microsoft Intune.

Scenario 2: I want to enable Azure AD JOIN for my standalone Windows 10 devices using PowerShell.

Could anyone please provide me with the necessary steps or PowerShell commands to achieve this? Any alternative solution to automate this process, any additional best practices or considerations for this process would be highly appreciated.

Thank you in advance!

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 53,986 Reputation points Microsoft External Staff
    2023-07-21T01:50:05.8666667+00:00

    @Swahela Mulla, Thanks for posting in Q&A. From your description, I know there are some Intune managed devices which you want change from other join type to Azure AD join.

    Based on my researching, I don't find the method to do this. I think you need to unenroll these devices and re-enroll into Intune using Autopilot Azure AD join enrollment method or Azure Active Directory Join with automatic enrollment method (The devices will be Azure AD joined after the enrollment).

    https://learn.microsoft.com/en-us/mem/intune/fundamentals/deployment-guide-enroll?tabs=work-profile%2Ccorporate-owned-apple%2Cautomatic-enrollment#windows-enrollment-methods

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.