Does Dsregcmd \leave uneroll Win 11 device from intune??

Anant Bera 106 Reputation points

Hi experts

We have a Windows 11 device which is Hybrid joined as well as Co-Managed. We want to remove the device from the Intune. We are running the DSREGCMD /Leave command to unjoin the from hybrid. after this the device object is deleted from the Azure Entra ID .

Our query is :

If we Run the DSREGCMD /Leave does it going to unenroll the device from the intune portal as well??


Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,441 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,488 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,167 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yanhong Liu 3,340 Reputation points Microsoft Vendor


    Thank you for posting in Q&A forum.

    NO. If you run the DSREGCMD /Leave command it will remove the device from the hybrid join, but it will not directly deregister or delete the device from the Intune portal. The DSREGCMD command is primarily used to perform join and registration operations with Azure AD locally on the device.

    To delete a device from the Intune portal, you need to perform the corresponding actions in the Intune management portal. Typically, you can find the device list in the Intune portal, select the device you want to delete, and then perform the deletion operation. Doing so will unregister the device from Intune and remove it from the device list.

    I hope the information above is helpful.

    Best Regards,

    Yanhong Liu


    If the Answer is helpful, please click "Accept Answer" and upvote it.

0 additional answers

Sort by: Most helpful