![DSRGECMD /LEAVE error - The device object with id - could not be removed from the store because it is managed by MDM application" or "How to elegantly remove a Hybrid AAD DSRGECMD /LEAVE error - The device object with id - could not be removed from the store because it is managed by MDM application" or "How to elegantly remove a Hybrid AAD](https://preview.redd.it/dsrgecmd-leave-error-the-device-object-with-id-could-not-be-v0-7w4eru94xug91.png?auto=webp&s=afbfe470243e4ea1cb194094f94875c887323bcc)
DSRGECMD /LEAVE error - The device object with id - could not be removed from the store because it is managed by MDM application" or "How to elegantly remove a Hybrid AAD
![Don't wrap DsRegCmd with PowerShell – Use this to get Azure AD information from the local computer – DeployWindows Don't wrap DsRegCmd with PowerShell – Use this to get Azure AD information from the local computer – DeployWindows](https://deploywin.files.wordpress.com/2020/09/dsregcmd-status.png?w=979)
Don't wrap DsRegCmd with PowerShell – Use this to get Azure AD information from the local computer – DeployWindows
![dsregcmd: Troubleshoot and manage Azure Active Directory (Microsoft Entra ID) joined devices – 4sysops dsregcmd: Troubleshoot and manage Azure Active Directory (Microsoft Entra ID) joined devices – 4sysops](https://4sysops.com/wp-content/uploads/2023/08/User-state-details-with-dsregcmd.png)
dsregcmd: Troubleshoot and manage Azure Active Directory (Microsoft Entra ID) joined devices – 4sysops
![Don't wrap DsRegCmd with PowerShell – Use this to get Azure AD information from the local computer – DeployWindows Don't wrap DsRegCmd with PowerShell – Use this to get Azure AD information from the local computer – DeployWindows](https://deploywin.files.wordpress.com/2020/09/powershell-csharp.png)