After an upgrade logon displayed: The User Profile Service service failed to sign in. User profile cannot be loaded.

zbook

Member
Joined
Oct 2, 2015
Posts
919
An in place upgrade was just performed.

Windows booted to the splash screen.

The password was entered.

The message displayed:

The User Profile Service service failed to sign in.

User profile cannot be loaded.



Each logon attempt displayed the same result.




How do you troubleshoot / fix?
 
Rebooted to Windows RE > rolled back featured upgrade > booted windows

Created a brand new bootable Windows 10 iso 20H2.

Attempted a Windows 10 upgrade: 1909 > 20H2 using the Windows 10 iso > Windows 10 installation failed > error code: 0x80004002, 0x50016


Code:
2021-01-24 02:16:21, Error                 CSI    00000001 (F) STATUS_OBJECT_NAME_NOT_FOUND #10# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysQueryValueKey(flags = 0, key = ab4 ('\REGISTRY\MACHINE\SYSTEM\Setup'), vn = [l:7 ml:8]'Compact', kvic = 2, kvi = 2, disp = 0)[gle=0xd0000034]
2021-01-24 02:16:21, Error                 CSI    00000002 (F) STATUS_OBJECT_NAME_NOT_FOUND #9# from Windows::Rtl::SystemImplementation::CKey::QueryValue(flags = 0, kn = [l:31]'\Registry\Machine\SYSTEM\Setup\', vn = [l:7 ml:8]'Compact', ic = KeyValuePartialInformation, info = {l:0 b:}, disp = 0)[gle=0xd0000034]
2021-01-24 02:16:41, Error                 MOUPG  CFCAcquirerDCAT::GenerateDownloadRequestForPayload(1464): Result = 0x80004002
2021-01-24 02:16:41, Error                 MOUPG  CFCAcquirerDCAT::Download(1311): Result = 0x80004002
2021-01-24 02:16:41, Error                 MOUPG  CFCPayloadDU::Download(267): Result = 0x80004002
2021-01-24 02:16:41, Error                 MOUPG  DUSetup: Error on downloading SetupDU Payload: [0x80004002]
2021-01-24 02:16:41, Error                 MOUPG  CDlpActionDU::ExecuteFacilitatorDUSetup(2183): Result = 0x80004002
2021-01-24 02:16:41, Info                  MOUPG  DUSetup: Facilitator DUSetupResult: [0x80004002]


Code:
2021-01-24 02:17:42, Error                 CSI    00000001 (F) STATUS_OBJECT_NAME_NOT_FOUND #38# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysQueryValueKey(flags = 0, key = dec ('\REGISTRY\MACHINE\SYSTEM\Setup'), vn = [l:7 ml:8]'Compact', kvic = 2, kvi = 2, disp = 0)[gle=0xd0000034]
2021-01-24 02:17:42, Error                 CSI    00000002 (F) STATUS_OBJECT_NAME_NOT_FOUND #37# from Windows::Rtl::SystemImplementation::CKey::QueryValue(flags = 0, kn = [l:31]'\Registry\Machine\SYSTEM\Setup\', vn = [l:7 ml:8]'Compact', ic = KeyValuePartialInformation, info = {l:0 b:}, disp = 0)[gle=0xd0000034]
2021-01-24 02:17:52, Error                 MOUPG  CFCAcquirerDCAT::GenerateDownloadRequestForPayload(1464): Result = 0x80004002
2021-01-24 02:17:52, Error                 MOUPG  CFCAcquirerDCAT::Download(1311): Result = 0x80004002
2021-01-24 02:17:52, Error                 MOUPG  CFCPayloadDU::Download(267): Result = 0x80004002
2021-01-24 02:17:52, Error                 MOUPG  DUImage: Error on downloading ImageDU Payload: [0x80004002]
2021-01-24 02:17:52, Error                 MOUPG  CDlpActionDU::ExecuteFacilitatorDUImage(1473): Result = 0x80004002


Code:
2021-01-24 02:27:16, Info                  MOUPG  CInstallUI::ShowErrorMessage: Posted MSG_INSTALLUI_SWITCH_TO_ERROR_PAGE
2021-01-24 02:27:16, Info                  MOUPG  SetupHost: Reporting error event -> [0x80004002, 0x50016]
 
Sfc /scannow was ran after booting Windows 10 1909 and was ran again by opening command prompt at boot (Windows RE) and using the Windows 10 iso 20H2 as source files.
They displayed different results.
The result after boot using both command prompt and powershell was Windows Resource Service could not start the repair service.
The result by opening command prompt at boot (Windows RE) was Windows Resource Protection did not find any integrity violations.

Dism /online /cleanup-image /restorehealth was ran using command prompt and using powershell.
They displayed different results.
The result with command prompt displayed Error 87. The cleanup-image option is unknown.
The result with powershell displayed Repair-Windows image failed. Error code = 0x80004002
The result with powershell using the bootable Windows 10 iso 20H2 as source files was
This powershell error codes were the same error code displayed for the Windows upgrade failure.



Code:
Microsoft Windows [Version 10.0.18363.1139]
(c) 2019 Microsoft Corporation. All rights reserved.
                                                                                                                        C:\windows\system32>powershell                                                                                          Windows PowerShell                                                                                                      Copyright (C) Microsoft Corporation. All rights reserved.                                                                                                                                                                                       Try the new cross-platform PowerShell https://aka.ms/pscore6                                                                                                                                                                                    PS C:\windows\system32> dism /online /cleanup-image /restorehealth                                                                                                                                                                              Deployment Image Servicing and Management tool
Version: 10.0.18362.1139

Image Version: 10.0.18363.1139


Error: 87

The cleanup-image option is unknown.
For more information, refer to the help by running DISM.exe /?.

The DISM log file can be found at C:\windows\Logs\DISM\dism.log
PS C:\windows\system32> Repair-WindowsImage -Online -RestoreHealth
Repair-WindowsImage : Repair-WindowsImage failed. Error code = 0x80004002
At line:1 char:1
+ Repair-WindowsImage -Online -RestoreHealth
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Repair-WindowsImage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.RepairWindowsImageCommand

PS C:\windows\system32> Repair-WindowsImage -Online -RestoreHealth -Source "E:\$Windows.~BT\Sources\Install.esd:6" -LimitAccess
Repair-WindowsImage : Repair-WindowsImage failed. Error code = 0x80004002
At line:1 char:1
+ Repair-WindowsImage -Online -RestoreHealth -Source "E:\$Windows.~BT\S ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Repair-WindowsImage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.RepairWindowsImageCommand

PS C:\windows\system32> cmd
Microsoft Windows [Version 10.0.18363.1139]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\windows\system32>sfc /scannow

Windows Resource Protection could not start the repair service.

C:\windows\system32>powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\windows\system32> sfc /scannow

Windows Resource Protection could not start the repair service.
PS C:\windows\system32>





Command prompt on boot (Windows RE)
DISKPART> lis vol

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     H                       DVD-ROM         0 B  No Media
  Volume 1     C   System Rese  NTFS   Partition    499 MB  Healthy
  Volume 2     E   Windows      NTFS   Partition    689 GB  Healthy
  Volume 3     F   HP_TOOLS     FAT32  Partition   2056 MB  Healthy
  Volume 4     G   Recovery     NTFS   Partition   7148 MB  Healthy    Hidden
* Volume 5     D   ESD-USB      FAT32  Removable     32 GB  Healthy

DISKPART> exit

Leaving DiskPart...

X:\Sources>sfc /scannow /offbootdir=C:\ /offwindir=E:\windows

Beginning system scan.  This process will take some time.


Windows Resource Protection did not find any integrity violations.



Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2021-01-25 10:51:10.911
Microsoft Windows 10 Build 18363 - amd64
Not using a script file.




AutoAnalysis::
SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2021-01-25 10:51:17.672
----------------------EOF-----------------------




Setupdiag 01/24

Code:
Matching Profile found: OptionalComponentInitCBSSessionFailed - 63340812-9252-45F3-A0F2-B2A4CA5E9317
SetupDiag version: 1.6.0.0
System Information:
    Machine Name = DESKTOP-K2CP43S
    Manufacturer = Hewlett-Packard
    Model = HP ZBook 17
    HostOSArchitecture = 1033
    FirmwareType = PCAT
    BiosReleaseDate =
    BiosVendor = Default System BIOS
    BiosVersion = L70 Ver. 01.46
    HostOSVersion = 10.0.18363
    HostOSBuildString = 18362.1.amd64fre.19h1_release.190318-1202
    TargetOSBuildString = 10.0.19041.621 (vb_release_svc_prod1.201014-1758)
    HostOSLanguageId =
    HostOSEdition = Professional
    RegisteredAV = Windows Defender
    FilterDrivers = FileInfo
    UpgradeStartTime = 1/24/2021 2:15:38 AM
    UpgradeEndTime = 1/24/2021 2:27:56 AM
    UpgradeElapsedTime = 00:12:18
    CV = jyr4VW2ZxUK9jA3N
    ReportId = a8b033ef-9017-415d-aabe-38f46ec936fb


Error: SetupDiag reports Optional Component Init CBSSession Failed.
Last Phase: Finalize
Last Operation: Remove System Restore checkpoints
Error: 0x80004002

Refer to "https://support.microsoft.com/en-us/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness" for possible remediation information.
Recommend you check the "Windows Modules Installer" service (Trusted Installer) is started on the system and set to automatic start, reboot and try the update again.  Optionally, you can check the status of optional components on the system (search for Windows Features), uninstall any unneeded optional components, reboot and try the update again.

Last Setup Phase:
Phase Name: Finalize
    Phase Started: 1/24/2021 2:27:07 AM
    Phase Ended: 1/24/2021 2:27:14 AM
    Phase Time Delta: 00:00:07
    Completed Successfully? True


Last Setup Operation:
Operation Name: Remove System Restore checkpoints
    Operation Started: 1/24/2021 2:27:14 AM
    Operation Ended: 1/24/2021 2:27:14 AM
    Operation Time Delta: 0:00:00:00.0000000
    Completed Successfully? True




CBS: CBS 01252021.txt

DISM: dism 01252021.txt
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top