When you attempt to install a feature update such as Windows 11 22H2, the error 0x8007001F may occur. The error code 0x8007001F (“ERROR_GEN_FAILURE”) means “A device attached to the system is not functioning.”
The Setupact.log (collected using SetupDiag) contained these significant lines:
(The lines containing the phrase “Found valid profile but can’t get user credentials” is the key.)
Warning [0x0803ba] MIG Found valid profile but can't get user credentials. User SID: S-1-5-21-850299350-1452774405-4938938-1003. Error: 0x00000534[gle=0x000000cb] Warning [0x0809c0] MIG Incomplete user profile detected and ignored:C:\Users\HP. Error: 2. Subsequent missing profiles will be immediately ignored. Info [0x0803e5] MIG Not unmapping HKCU\Software\Classes; it is not mapped Info [0x0803e5] MIG Not unmapping HKCU; it is not mapped
Warning [0x0803ba] MIG Found valid profile but can't get user credentials. User SID: S-1-5-21-850299350-1452774405-4938938-1001. Error: 0x00000534[gle=0x000000cb] Info MIG Attempting to add direct mapping for HKCU to 0x80000003, S-1-5-21-850299350-1452774405-4938938-1008 Info [0x0803df] MIG Adding direct mapping from HKCU to HKEY_USERS\S-1-5-21-850299350-1452774405-4938938-1008 (R/W)
Info [0x0803b8] MIG Processing profile: C:\Users\kokoe Info MIG UserIsAdminCheck: HP\kokoe IsAdmin = TRUE Info MIG UserIsConnectedCheck: HP\kokoe IsConnected = TRUE Warning MIG Duplicate profile detected for user S-1-5-21-850299350-1452774405-4938938-1008(C:\Users\kokoe) vs. S-1-5-21-850299350-1452774405-4938938-1001(C:\Users\kokoe). Info MIG AdjustPrivilege: Privilege SeTakeOwnershipPrivilege will be Disabled Info MIG Privilege has been disabled Error MigPlatformStartupOnline caught exception: Win32Exception: Duplicate profile detected for S-1-5-21-850299350-1452774405-4938938-1008. Abandoning.: The specified user does not have a valid profile. [0x000004E5] class Mig::CUserContext *__cdecl Mig::COnlineWinNTPlatform::AddUserContext(class Mig::CRegistryDataStore *,class UnBCL::String *,class UnBCL::String *,class UnBCL::String *,class UnBCL::String *,class UnBCL::String *,class UnBCL::Array *,int,struct _FILETIME,int,int,int,class UnBCL::String *,class UnBCL::String *) Error SP pSPDoMainGather: Engine initialization failed with error: 0x00000004 Info SP SPExecuteGather: End run. Result: 0x00000004 Error SP CGatherData: Migration phase failed. Status: 4 Info SP <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Error SP Operation failed: Gather data, scope: EVERYTHING. Error: 0x8007001F[gle=0x000000b7]
As you can see above, two user profiles seem to be invalid, and their SIDs (as per the log file) are given below:
whoami /user command showed this:
User Name SID ========= ========================================== hp\kokoe S-1-5-21-850299350-1452774405-4938938-1008
So, it’s clear that the SID
S-1-5-21-850299350-1452774405-4938938-1008 is a valid and functioning profile that should NOT be deleted.
The other two SIDs are invalid. Deleting the invalid SIDs from the registry should fix the error
To fix the error
0x8007001F when installing an update, delete the two invalid SIDs mentioned in the log file. First, create a System Restore Point and complete the following steps.
Note: The following SIDs were mentioned in the log from the subject computer. The SIDs will be different on each system. The following solution is based on the findings from the setupact.log above. Adapt the following solution accordingly to your situation.
- Launch the Registry Editor by running
- Go to the following branch:
- Backup the branch to a REG file.
- Expand the ProfileList key.
- Right-click subkey “S-1-5-21-850299350-1452774405-4938938-1001” and choose Delete.
- Right-click subkey “S-1-5-21-850299350-1452774405-4938938-1003” and choose Delete.
- Exit the Registry Editor.
See if you’re able to install the update(s) now.
Note: Microsoft forums user Zaki experienced the above issue. After deleting the erroneous SIDs from the registry, the problem was resolved.
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
1 thought on “Error 0x8007001F Installing Feature Update or Cumulative Update”
Thank you very much for putting this information together and for sharing it. I’ve been trying to upgrade my 2022 Dell XPS 15 laptop to Windows 11 22H2 since October and have been unsuccessful on every attempt until I dug a bit deeper and found your post. Every attempt to upgrade from the previous release of Windows 11 resulted in a completely unhelpful failure code – 0x8007001f. I did a lot of research on this error code and none of the information I found resolved the issue until I came across your post! None of the other posts I read ever mentioned the duplicate profile issue. I’ve never heard of this issue before and I’ve been using Windows since the days of Windows 3.1 / Windows NT.
Turned out I had a duplicate profile entry in my registry. Once I deleted the duplicate profile ID the 22H2 upgrade completed without any issues. I wish I had come across your post much sooner.
I am forever grateful to you for posting this incredibly helpful information!