Edit

Share via


Certificates are missing after you update a device to a newer version of Windows 10

This article provides workarounds for an issue in which a device loses its system and user certificates after an operating system update.

Applies to:   Windows 10, version 20H2; Windows 10, version 2004; Windows 10, version 1909; Windows 10, version 1903

Symptoms

You have a device that runs Windows 10, version 1809 or a later version. The device also has a latest cumulative update (LCU) that was released on September 16, 2020, or a later LCU. After you update the device to a later version of Windows, the device loses its system and user certificates.

Cause

This behavior might occur if the installation source or media that was used to update the device is out-of-date. The update doesn't include an LCU that was released on October 13, 2020, or later. The behavior typically affects managed devices in environments in which an update management tool such as Windows Server Update Services (WSUS) or Microsoft Endpoint Configuration Manager downloads updates and then distributes them to devices. It also affects devices that are updated by using outdated physical media or ISO images.

This behavior doesn't affect devices that use Windows Update for Business or that connect directly to Windows Update. Any device that connects to Windows Update should always receive the latest versions of the feature update, including the latest LCU, without any extra steps.

Workaround

To mitigate this issue, do one of the following:

  • Download a new source image from the Microsoft Update Catalog or from the Volume Licensing Service Center to replace the previous source image. Then, use that image to update the device.
  • Roll back the device to the previous Windows version, add the missing LCU to the update, and then reinstall the update.

Important

  • The rollback process does not affect your personal files, but it removes any apps and drivers that you installed after you installed the update. It also reverses any changes to settings that you made after you installed the update.

  • By default, you can roll back an update only within 10 days of installing it. You can change this time limit in a Command Prompt window by running the following command:

    Dism /Online /Set-OSUninstallWindow /Value:<days>
    

    In this command, <days> is an integer between 2 and 60.

To roll back, follow these steps:

  1. Select Start > Settings > Update & Security > Recovery.
  2. Under Go back to the previous version of Windows 10, select Get started.

To add the latest LCU to the update source, follow these steps:

  1. Mount the source ISO image, and then copy the Install.wim file to a writeable location.

    Note

    If the image has an Install.esd file instead of an Install.wim file, use the Dism /Export-Image command to convert the .esd file to a .wim file.

  2. Go to Windows 10 update history to look up the correct LCU number for your system version.

  3. Go to Microsoft Update Catalog, and then download the LCU.

    Note

  4. To add the LCU to the image, open an administrative Command Prompt window, and then run the following command:

    Dism /Add-Package /Image:"C:\Mount\Windows" /PackagePath="windows10.0-kb4586781-x64_bd543ce012ec1695201cdb2d324a2206bd445132.msu" /LogPath=C:\Mount\Dism.log
    
  5. Review the list of packages that the Dism command produced, and verify that the list contains the package. To view the list, run the following command:

    Dism /Get-Packages /Image:<Path_to_Image>
    

    Note

    In this command, <Path_to_Image> is the path and filename of the image file.

  6. Commit and unmount the image. To do this, run the following command:

    Dism /Unmount-Image /MountDir:<Path_to_Mount_Directory> /Commit
    

    Note

    In this command, <Path_to_Mount_Directory> is the path to the mounted image.

  7. (Optional) Use the updated file to re-create the image. To do this, run the following command:

    Oscdimg –n –d –m "<Source>" "<Target.iso>"
    

    Note

    In this command, <Source> is the location of the files that you intend to build into an image, and <Target.iso> is the name of the ISO image file.

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for deployment-related issues.

Reference