How can I join windows device to AZureAD(Entra ID) through the command or win api?

胜 邢 20 Reputation points
2024-03-19T03:41:29.9333333+00:00

Hi,

I need some help.

So far, I've joined the device to my work or school network by following the link below and found my device in the Microsoft Entra Admin Center.

https://support.microsoft.com/en-us/account-billing/join-your-work-device-to-your-work-or-school-network-ef4d6adb-5095-4e51-829e-5457430f3973

Azure_device

Now I'm looking for a command or win api to replace this.

I want to know how I can achieve my purpose?

thanks

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,649 questions
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 35,456 Reputation points Microsoft Employee
    2024-03-19T11:31:07.9266667+00:00

    @胜 邢 Thank you for contacting us. Unfortunately, there isn't a command-line approach available to join the device to Entra ID at the moment. The steps you followed is the only method to join the device to Entra ID.

    You can share your feedback for this feature request - https://feedback.azure.com/d365community/search/?q=powershell+azure+join

    Reference QnA post - https://learn.microsoft.com/en-us/answers/questions/1610955/error-computer-pc-1-failed-to-join-domain

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.