[SOLVED] dism fails with 0x800f081f

Thanks, I can't see anything immediately obvious, but could you please open an elevated command prompt and then enter:

Rich (BB code):
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *immersivecontrolpanel*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
 
I just noticed that the calculator won't start either.
Could you please try this from an elevated powershell prompt:

Rich (BB code):
Get-AppxPackage -allusers *windowscalculator* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
 
Amazing! The settings app now works! But the second command doesn't work!


Add-AppxPackage : No location parameter found that accepts the argument '\AppXManifest.xml'.
 
Could you please try this one from an elevated command prompt:

Rich (BB code):
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *windowscalculator*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
 
We succeeded!
The other packages seem to be broken as well, is there any way to do them all at once?
 
Excellent!

The other packages seem to be broken as well, is there any way to do them all at once?
You could possibly write a PowerShell script to enumerate through all the package names and then run the command we were using to reinstall them. You can get the names of all the packages installed using the following PowerShell cmdlet:

Rich (BB code):
Get-AppxPackage | Select Name, PackageFullName
 
Thank you! Everything seems to be working fine, but what should I do in case the problem occurs again?
Also, I tried to donate but could not from my country!😭
 
Thank you! Everything seems to be working fine, but what should I do in case the problem occurs again?
With the apps?

Just run the following command from a Powershell window:

Rich (BB code):
Get-AppxPackage | Select Name

Find the app name you want to reinstall e.g. notepad

Open an elevated command prompt window and then enter the following command:

Rich (BB code):
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *windowscalculator*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"

Change the red part to the name returned by Get-AppxPackage. So, in our example, it would be *WindowsNotepad*.

Also, I tried to donate but could not from my country!😭
Unfortunately PayPal has some weird policies and restricts payments for some reason? However, thank you very much for considering a donation, it is very much appreciated!
 

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

Back
Top