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
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,706 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,017 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,542 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,805 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,181 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 51,736 Reputation points Microsoft Vendor
    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.