Skip to content

Ulysses Neves

Microsoft Entra ID, authentication, and hybrid identity troubleshooting.

Menu
  • Início
  • Microsoft Azure
  • Microsoft AD FS
  • Microsoft 365
  • Contact
Menu

Hybrid Azure AD Join – Fixing error message: Server error: The user certificate is not found on the device with id:

Posted on 7 de September de 2021

Hi all. Today we are going to cover the error message ‘The user certificate is not found on the device with id: device’s ID’ on Event viewer and the device is with status ‘Pending’ on Azure AD.

Scenario:

Join type: Azure AD Hybrid Join
Client: Windows 10

Issue: The Windows 10 client is joined to a local domain and is replicated to Azure AD, but the device is not able to finish the join process.

On Azure AD, we see the device status as “Pending” as below:

Investigating the logs in the client machine

Once we have the Hybrid Join policy in place, we might be able to check the Automatic-Device-Join task in the Task Scheduler with Last Run Result as (0x1) which is ‘Not successful’:

Checking event viewer logs on the client machine on Microsoft-Windows-User Device Registration/Admin, we see events 204 and 304 below:

Result on event ID 204:

The get join response operation callback failed with exit code: Unknown HResult Error code: 0x801c005a.
Activity Id: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
The server returned HTTP status: 400
Server response was: {“code”:”invalid_request”,”subcode”:”error_computer_user_cert_not_found”,”message”:”The user certificate is not found on the device with id: XXXXXXXXXXXXXXXXXXXXXXXXXXXX.”,”operation”:”DeviceRenew”,”requestid”:”d650c573-b84c-4256-8751-e43102420c26″,”time”:”07-23-2021 16:35:13Z”}

Result on event ID 304:

Automatic registration failed at join phase.
Exit code: Unknown HResult Error code: 0x801c005a
Server error: The user certificate is not found on the device with id: XXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Tenant type: Federated
Registration type: fallback_sync
Debug Output:
joinMode: Join
drsInstance: azure
registrationType: fallback_sync
tenantType: Federated
tenantId: XXXXXXXXXXXXXXXXXXXXXXXXXXXX.
configLocation: undefined
errorPhase: join
adalCorrelationId: undefined
adalLog:
undefined
adalResponseCode: 0x0

Explanation: Once the device has the policy to Hybrid Join and the machine has connectivity to the internet, the task Automatic-Device-Join task will generate a temporary self-signed certificate and save it on the machine’s account, specifically on attribute UserCertificate.

In case task is not able to save the certificate’s information on the attribute UserCertificate or it was modified before the machine finished the join process, you might face the issue above.

Fixing the issue on the client

Running the command below on the client machine, we are able to locate it in the local AD.

([adsisearcher]”(&(name=$env:computername)(objectClass=computer))”).findall().path

After locating the machine in the Active Directory, we might be able to locate the UserCertificate attribute in the Attribute Editor’s tab. As we can see below, I broke with the certificate to reproduce the issue. That could be changed by any third-party tool or an administrator.

To fix the issue, I’ve deleted the corrupted certificate’s information inside the attribute UserCertificate.

Now, to force the client machine generates a new temporary certificate, let’s run the task Automatic-Device-Join manually. We can trigger the same task by signing in to the Windows 10 machine.

Delete the pending device in Azure AD

To force AD Connect to sync the new temporary certificate to Azure AD, we need to remove the current device by deleting it.

Select the device with the status ‘pending’ on Azure AD and select Delete.

SYNC the certificate to Azure AD

With the new certificate populated and the old device removed from Azure AD, let’s force a FULL SYNC on AD Connect to SYNC the same device with a new certificate to Azure running the command below:

Start-ADSyncSyncCycle -PolicyType Initial

Joining the device

Now that we have the device with the temporary certificate in Azure AD, let’s force the join running the command below on Command prompt as administrator:

dsregcmd /debug /join

Note: The Automatic join process can also run, signing in to the client device or running manually the task Automatic-Device-Join.

Now, checking the task scheduler, we are able to see a return code ‘0’, which means ‘Successful join’:

Task Scheduler successfully completed task “\Microsoft\Windows\Workplace Join\Automatic-Device-Join” , instance “{8e426519-b5a0-4f55-8194-efb953384d8c}” , action “%SystemRoot%\System32\dsregcmd.exe” with return code 0.

On Event viewer, we confirm on Microsoft-Windows-User Device Registration/Admin, event 306 status Automatic registration succeeded.

On Command prompt, we can also confirm the successful Hybrid Join running the command: dsregcmd /status

We can also confirm the device status updated on Azure from the previous ‘Pending’ to the date the device was registered as below:

Summary

In this article, we covered the error message ‘The user certificate is not found on the device with id: device’s ID’ on Event viewer, and the device is with status ‘Pending’ on Azure AD.

I hope you have enjoyed reading this article, and it helps you to manage your Hybrid Join deployment.

Enjoyed the article? Like and share. 🙂

Note: I do not represent the organization I work for, all the opinions expressed here, are my own. This post is provided AS IS with no warranties or guarantees and confers no rights.

In case you have any suggestions or feedback, please leave a comment.

[ ]’s

Ulysses Neves

8 thoughts on “Hybrid Azure AD Join – Fixing error message: Server error: The user certificate is not found on the device with id:”

  1. Patrick says:
    23 de November de 2021 at 07:50

    Hi thanks for the article, how long does it take to create a new user certificate, I tried this but even 10 minutes after running Automatic device registration, I still have not set in the user certificate attribute.
    Looking forward for any recommendations

    Reply
    1. Uneves says:
      23 de November de 2021 at 07:59

      Hey Patrick. Thanks for your query. By default, the task for Hybrid Join runs every hour and creates the certificate in the user’s personal store. Please check more information on this official link: https://docs.microsoft.com/en-us/azure/active-directory/devices/device-registration-how-it-works#hybrid-azure-ad-joined-in-managed-environments

      Reply
  2. Master of Management Telkom University says:
    30 de January de 2022 at 07:55

    I like the valuable info you provide in your articles. I will bookmark your weblog and check again here regularly. I am quite certain I will learn plenty of new stuff right here! Good luck for the next!

    Reply
    1. Uneves says:
      31 de January de 2022 at 10:35

      Thanks for the feedback provided. Happy to help! Keep in touch! 🙂

      Reply
  3. Marius van Deventer says:
    1 de August de 2022 at 09:53

    WOW. Been looking for a quick solution and here it was. Thanks. Deleted the UserCertificate attribute, duplicate AAD object, went on with other work and later checked (2hrs later) and boom, there it was Hybrid Joined, Registered and Intune device manageable.
    THANKS

    Reply
    1. Uneves says:
      2 de August de 2022 at 15:04

      Hey Marius. Thank you for the feedback. Always a pleasure to help. 🙂

      Reply
  4. James Fullerton says:
    31 de October de 2022 at 23:48

    Thanks for this wonderful article. Would you happen to have another article about troubleshooting a hybrid-join AD workstation that will not register in Intune properly? workstation looks good in AzureAD device list but when I register it for Intune MDM it puts another entry with a completely different GUID in Intune and Azure AD.

    Reply
    1. Uneves says:
      11 de November de 2022 at 12:16

      Hello James. Thank you for the feedback. Indeed, your topic is a good suggestion. I will consider when planning new articles.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Microsoft Authenticator Will Block Jailbroken Devices in 2026 — What You Need to Know 17 de March de 2026
  • Enhancing Azure role activation security with FIDO2/Passkeys 23 de September de 2024
  • Microsoft Entra ID CAP | Enforcing WHfB using Authentication Strength 21 de April de 2024
  • Troubleshooting Error Code ‘0x000005e’ in WHfB: PIN Authentication Woes 11 de February de 2024
  • WHfB: Fixing Windows Hello for Business error ‘LogoncertTemplateReady: NO (StateNoTemplate)’ 29 de December de 2023

Archives

  • March 2026
  • September 2024
  • April 2024
  • February 2024
  • December 2023
  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019

Tags

#aaddownleveldevice #aadhybridjoin #adfs #adfsonsql #azuread #azureauth #azureCA #azuredevice #azurehybridjoin #azuremfa #azuresecurity #capolicy #cloudkerberostrust #conditionalaccess #conditionalaccesspolicy #deviceregistration #gmsaaccount #gopasswordless #hybridaadjoin #mfaserver #msadfs #msazure #msidentity #namedlocation #sslcertificatevalidation #tshootadfs #tshoothybridjoin #tshootwaptrust #waptrust #WHFBcerttrust #whfbdeployment #WHfBhybridsetup #widdatabase adconnect authenticationcontext authenticationstrength az500 azuread azuremfa azurepim azuresecurity cloudsecurity microsoft365 msazure WHfB
©2026 Ulysses Neves | Design: Newspaperly WordPress Theme
Ulysses Neves
Gerenciar Consentimento de Cookies
Para fornecer as melhores experiências, usamos tecnologias como cookies para armazenar e/ou acessar informações do dispositivo. O consentimento para essas tecnologias nos permitirá processar dados como comportamento de navegação ou IDs exclusivos neste site. Não consentir ou retirar o consentimento pode afetar negativamente certos recursos e funções.
Funcional Always active
O armazenamento ou acesso técnico é estritamente necessário para a finalidade legítima de permitir a utilização de um serviço específico explicitamente solicitado pelo assinante ou utilizador, ou com a finalidade exclusiva de efetuar a transmissão de uma comunicação através de uma rede de comunicações eletrónicas.
Preferências
O armazenamento ou acesso técnico é necessário para o propósito legítimo de armazenar preferências que não são solicitadas pelo assinante ou usuário.
Estatísticas
O armazenamento ou acesso técnico que é usado exclusivamente para fins estatísticos. O armazenamento técnico ou acesso que é usado exclusivamente para fins estatísticos anônimos. Sem uma intimação, conformidade voluntária por parte de seu provedor de serviços de Internet ou registros adicionais de terceiros, as informações armazenadas ou recuperadas apenas para esse fim geralmente não podem ser usadas para identificá-lo.
Marketing
O armazenamento ou acesso técnico é necessário para criar perfis de usuário para enviar publicidade ou para rastrear o usuário em um site ou em vários sites para fins de marketing semelhantes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Ver preferências
  • {title}
  • {title}
  • {title}