[SOLVED] Updates, Notepad, and DISM not working.

Joined
Mar 3, 2022
Posts
11
I noticed that paint and notepad were not working. Notepad didn't launch at all, and paint said something like "unable to create file." I tried uninstalling and installing in the optional features, but it failed to reinstall. In addition, in windows is not updating, and, it always says "Download error "0x80070002". I did the sfc scan and it said it fixed corrupted files, but nothing changed. DISM /Online /Cleanup-Image /Restorehealth failed at around 70% and says source files were not found" It does the same thing when I set a wim file as the source. I downloaded the windows 10 iso installed it (to the same version 21H1), and it too gave an error and failed. It said "0x8007001f – 0x20006, The installation failed in the SAFE_OS phase with an error during REPLICATE_OC operation. The windows recovery environment (I'm not sure if this is what it is called) does not boot, and just shows a blue screen with an error message without even displaying the windows spash screen. Also, my restore points got deleted when I tried a tutorial on fixing DISM. The Tweaking windows repair app and chkdsk also failed to solve my problem.



How would I fix all this? I do not want to reinstall windows as I will have to reconfigure and install all of my apps and settings.
 
I may have not been too clear in my original post. I have already tried this, and it says that it can not install, and gives the error 0x8007001f – 0x20006 and says the installation failed in the SAFE_OS phase with an error during REPLICATE_OC operation. This happens after it reboots by itself.
 
You can repair install all apps by executing below PowerShell command, make sure to open PowerShell with administrative privileges.


Code:
Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}


If repair installing all apps won't help reset Notepad and Paint by executing below PowerShell commands one at a time.

Code:
Get-AppxPackage *Microsoft.WindowsNotepad* | Reset-AppxPackage 

Get-AppxPackage *Microsoft.MSPaint* | Reset-AppxPackage
 
Last edited:
Will the first block of code reset the apps and delete their data?

Also when I run the second block, it gives this error:
Reset-AppxPackage : The term 'Reset-AppxPackage' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
 
My guess is that you would need the -Package parameter after the Reset-AppxPackage command, but that's the least of your problems.

Worrying about Notepad and/or Paint given the overall issues you've got is not worth wasting your time. These will be corrected once Windows is able to update.

I direct you, again, to the Windows Update forum. Follow their posting instructions and offer a link to this topic for background as well.
 
First command only reinstall apps it should not delete the data.

Looks like version 21H2 does not support 'Reset-AppxPackage' command.
 

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

Back
Top