Hello @Kallehave Isaak,
Thank you for posting your query on Microsoft Q&A.
I see whenever you are syncing the domain joined device from on prem to Entra ID, device ID is not matching with the ObjectGUID in local AD.
To fix this.
- Open command prompt as administrator.
- Execute the command "dsregcmd /leave".
- Open the computer certificate store using "certlm.msc"
- Ensure the computer certificate with the issuer "MS-Organization-Access" is deleted.
- If the certificate exists and then delete the certificate.
- Restart the client.
The restart should trigger a fresh device registration. Ensure the new certificate public key is updated on the computer object in On-prem AD. If there are multiple domain controllers, then ensure the attribute is replicated to all the DC's. Trigger a delta sync on the AAD Connect server. Once the sync is complete you can trigger device registration by either restarting the machine or executing the command dsregcmd /join /debug or running the schedule task "Automatic-Device-Join" under 'Workplace Join".
If above fix didn't help, try to verify the SCP configuration by following below document.
Verify the SCP object
To Verify:
- Go to a domain joined PC and open Windows PowerShell.
- Run the following commands
$scp = New-Object System.DirectoryServices.DirectoryEntry; $scp.Path = "LDAP://CN=62a0ff2e-97b9-4513-943f-0d221bd30080,CN=Device Registration Configuration,CN=Services,CN=Configuration,DC=fabrikam,DC=com"; $scp.Keywords;
- Verify the Keywords values. They should look similar to:
azureADName:contoso.com azureADId:62f988bf-####-####-####-############
- The field names are case-sensitive. Make sure that they are exactly azureADName: and azureADId:
If the issue exists, I would like to check this up offline with you to understand the scenario to see why this kind of behavior is occurring. please send us an email on azcommunity@microsoft.com referencing this issue with a subject line "ATTN:pothurajur" include a link to the current thread.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Thanks,
Raja Pothuraju.