Tech Community Live: Endpoint Manager edition
Jul 21 2022, 08:00 AM - 12:00 PM (PDT)

Autopilot - Hybrid Azure AD Joined

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3157183%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EAutopilot%20-%20Hybrid%20Azure%20AD%20Joined%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3157183%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EFirst%20post%20on%20here%2C%20hello%20everyone!%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI've%20recently%20been%20testing%20the%20deployment%20of%20Windows%2010%20devices%20using%20Autopilot.%20I've%20managed%20to%20join%20a%20device%20to%20AAD%20and%20sync%20it%20back%20to%20our%20on-prem%20AD.%20This%20left%202%20devices%20that%20appeared%20in%20AAD%2C%20the%20Azure%20AD%20joined%20device%20and%20the%20Hybrid%20Azure%20AD%20Joined%20device.%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EOnce%20the%20Hybrid%20Azure%20AD%20Joined%20device%20was%20enrolled%20and%20compliant%20in%20Intune%2C%26nbsp%3BI%20renamed%20it%20to%20AutopilotTest.%20Is%20there%20anyway%20of%20deleting%20the%20Azure%20AD%20Joined%20device%2C%20which%20still%20appears%20in%20AAD%20with%20its%20original%20name%3F%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3157183%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EIntune%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3157183%22%20slang%3D%22en-US%22%3EAutopilot%20-%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3157183%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20post%20on%20here%2C%20hello%20everyone!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20recently%20been%20testing%20the%20deployment%20of%20Windows%2010%20devices%20using%20Autopilot.%20I've%20managed%20to%20join%20a%20device%20to%20AAD%20and%20sync%20it%20back%20to%20our%20on-prem%20AD.%20This%20left%202%20devices%20that%20appeared%20in%20AAD%2C%20the%20Azure%20AD%20joined%20device%20and%20the%20Hybrid%20Azure%20AD%20Joined%20device.%3C%2FP%3E%3CP%3EOnce%20the%20Hybrid%20Azure%20AD%20Joined%20device%20was%20enrolled%20and%20compliant%20in%20Intune%2C%26nbsp%3BI%20renamed%20it%20to%20AutopilotTest.%20Is%20there%20anyway%20of%20deleting%20the%20Azure%20AD%20Joined%20device%2C%20which%20still%20appears%20in%20AAD%20with%20its%20original%20name%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3157183%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

First post on here, hello everyone!

 

I've recently been testing the deployment of Windows 10 devices using Autopilot. I've managed to join a device to AAD and sync it back to our on-prem AD. This left 2 devices that appeared in AAD, the Azure AD joined device and the Hybrid Azure AD Joined device.

Once the Hybrid Azure AD Joined device was enrolled and compliant in Intune, I renamed it to AutopilotTest. Is there anyway of deleting the Azure AD Joined device, which still appears in AAD with its original name?

 

1 Reply
Renaming Hybrid Joined devices is not supported, see https://docs.microsoft.com/en-us/mem/intune/remote-actions/device-rename, but that only seems to be about renaming the device in Intune itself instead of on the machine using PowerShell or System Properties.

Normally the below applies, logging into the machine with the same user account should clear-up double registrations, but not sure if it applies when you renamed the device?

https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-plan#handling-de...

Handling devices with Azure AD registered state
If your Windows 10 domain joined devices are Azure AD registered to your tenant, it could lead to a dual state of hybrid Azure AD joined and Azure AD registered device. We recommend upgrading to Windows 10 1803 (with KB4489894 applied) or newer to automatically address this scenario. In pre-1803 releases, you'll need to remove the Azure AD registered state manually before enabling hybrid Azure AD join. In 1803 and above releases, the following changes have been made to avoid this dual state:

Any existing Azure AD registered state for a user would be automatically removed after the device is hybrid Azure AD joined and the same user logs in. For example, if User A had an Azure AD registered state on the device, the dual state for User A is cleaned up only when User A logs in to the device. If there are multiple users on the same device, the dual state is cleaned up individually when those users log in. After removing the Azure AD registered state, Windows 10 will unenroll the device from Intune or other MDM, if the enrollment happened as part of the Azure AD registration via auto-enrollment.
Azure AD registered state on any local accounts on the device isn’t impacted by this change. Only applicable to domain accounts. Azure AD registered state on local accounts isn't removed automatically even after user logon, since the user isn't a domain user.
You can prevent your domain joined device from being Azure AD registered by adding the following registry value to HKLM\SOFTWARE\Policies\Microsoft\Windows\WorkplaceJoin: "BlockAADWorkplaceJoin"=dword:00000001.
In Windows 10 1803, if you have Windows Hello for Business configured, the user needs to reconfigure Windows Hello for Business after the dual state cleanup. This issue has been addressed with KB4512509.
Note

Even though Windows 10 automatically removes the Azure AD registered state locally, the device object in Azure AD is not immediately deleted if it is managed by Intune. You can validate the removal of Azure AD registered state by running dsregcmd /status and consider the device not to be Azure AD registered based on that.