How to resolve the device registration issue on Azure AD:
- Open a command prompt on the problematic device as an administrator.
- Run the command
dsregcmd /leave
. - Wait for approximately 30 minutes for the device to successfully register on your Azure AD. Alternatively, if you don't want to wait and have an Azure AD Connect server, remote into it and open PowerShell as an administrator.
- Run the command
Start-ADSyncSyncCycle -PolicyType Delta
to force a synchronization. - On the problematic device, open a command prompt as an administrator and run the command
dsregcmd /join
. - Wait for the process to complete, and you are finished.
- Thank me later lol