System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091

Page 1 of 30 12311 ... LastLast

  1. Posts : 42,634
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #1

    System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091


    Hi, thought I'd check if System Restore was still functional and got

    System Restore did not complete successfully. Your computer's system files and
    settings were not changed.

    Details:
    System Restore failed while restoring the directory from the restore point.
    Source: AppxStaging
    Destination: %ProgramFiles%\WindowsApps
    An unspecified error occurred during System Restore. (0x80070091)


    I found SFC /scannow failed, so used Kyhi's excellent Image Health tool
    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums
    #2
    to resolve DISM issues and get SFC /SCANNOW passing.

    System Restore still fails.

    I've run some repairs using Tweaking.com's repair tool for permissions, turned System Restore off and on, turned off Avast, tried System restore from Safe Mode. The event log contains nothing useful I've seen- just a bare statement of An unspecified error occurred during System Restore. (0x80070091).

    Research shows some reports of this, but I've found no clear resolution.
    This exact report was posted on this forum earlier this year, with no replies.
    I've not done anything to %ProgramFiles%\WindowsApps like changing its ownership as some do.

    Any thoughts? Thanks!
      My Computers


  2. Posts : 27,157
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #2

    I have given up using System Restore years ago, as I found it very unreliable, back when I was testing 3rd party software.
    Now I just export the complete registry using RegEdit, before doing something.
    But seeing you have Tweaking.com's Windows Repair, you can use that to do it too.
    System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091-image-003.png

    System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091-image.png
      My Computers


  3. Posts : 42,634
    Win 10 Pro (22H2) (2nd PC is 22H2)
    Thread Starter
       #3

    Hi Cliff S, appreciate the thought.. and understand it. And naturally I use Macrium R for disk imaging.

    In this instance I'm curious, since it relates to the WindowsApps folder. Begs the question as to what SR is intended to protect as regards the universal apps.
      My Computers


  4. Posts : 1
    Windows 10 Education x64
       #4

    Sorry to resurrect an old thread, but since this came up as a first result for this exact problem I have, I just want to inform that it can be resolved by renaming (or deleting) the WindowsApps folder. You can do this in the command line:

    First, you must be in safe mode since the files will be in use.

    Then, take ownership of it:
    Code:
    takeown /f "C:\Program Files\WindowsApps" /r /d y
    Next, give yourself permissions
    Code:
    icacls "C:\Program Files\Windows Apps" /grant administrators:F /t
    Either delete with
    Code:
    rd /s "C:\Program Files\Windows Apps"


    Or rename with
    Code:
    rename "C:\Program Files\Windows Apps" "C:\Program Files\Windows Apps(old)"

    Reboot your PC, run system restore and it should work fine now.


      My Computer


  5. Posts : 8
    Windows 10
       #5

    arkhi said:
    Sorry to resurrect an old thread, but since this came up as a first result for this exact problem I have, I just want to inform that it can be resolved by renaming (or deleting) the WindowsApps folder. You can do this in the command line:

    First, you must be in safe mode since the files will be in use.

    Then, take ownership of it:
    Code:
    takeown /f "C:\Program Files\WindowsApps" /r /d y
    Next, give yourself permissions
    Code:
    icacls "C:\Program Files\Windows Apps" /grant administrators:F /t
    Either delete with
    Code:
    rd /s "C:\Program Files\Windows Apps"


    Or rename with
    Code:
    rename "C:\Program Files\Windows Apps" "C:\Program Files\Windows Apps(old)"

    Reboot your PC, run system restore and it should work fine now.


    Thank you for posting that, because I ran into the same issue; i tryed your solution, but the prompt claim that "takeown /f "C:\Program Files\WindowsApps" /r /d y" contain a sintax error due to y not being an allowable parameter for /d (despite being reported as allowable in the documentation); how can I fix that?
      My Computer


  6. Posts : 69
    Windows 10 v1607 Pro 64 bit
       #6

    I have a similar error to report: AppxStaging error 0x80070091, on a Dell Optiplex 755 running Windows 10 v 1607 Pro 64 bit. Cause unknown. The computer was in hibernate with Wake-On-LAN check boxes un-ticked for the Network Adapter and mcupdates deleted, so it was stable, quiet and not waking at a specific time or randomly waking for over a month. It was running OK. It woke up one night recently and the next day I was missing Desktop icons and I had the error notification.

    I tried the solution posted "takeown /f...." but I couldn't get the command line entries to work....same experience as Forum Member "mattws10".

    All running now after a two-day Custom install of Windows 10. I'm inexpert when dealing with command prompt and try as I did, I couldn't reason out the problem or syntax. Any thoughts would be greatly appreciated...that is certain. I am on my fourth install and commisioning of a PC in two months and getting weary.

    King regards to all those who contribute with thanks. Simon
      My Computer


  7. Posts : 11
    win10x64
       #7

    THIS IS FOR en-us language if your system is another language you WILL have to get the proper command options (as in the Y is the first letter of whatever "yes" is in your language)


    boot to SAFE MODE


    then
    Code:
    
    takeown /f "C:\Program Files\WindowsApps" /r /d y
    AND no space in Windowsapps on ANY commands AND put your username not administrators

    Code:
    icacls "C:\Program Files\WindowsApps" /grant YOURUSERNAME:F /t
    (whatever you login to safe mode with)


    and to rename you have to

    Code:
    attrib "c:\program files\windowsapps" -h
    then

    Code:
    rename "C:\Program Files\WindowsApps" WindowsAppsold


    I then moved (select all ,move,)the contents of windowsappsold back to windowsapps after I restored the system , you'll probably have to unhide the windowsapps folder and maybe do it in safe mode but if I recall I didn't do it in safe mode








    Last edited by cgdsatx; 04 Mar 2017 at 19:49.
      My Computer


  8. Posts : 8
    Windows 10
       #8

    SimonFastEddy said:
    All running now after a two-day Custom install of Windows 10. I'm inexpert when dealing with command prompt and try as I did, I couldn't reason out the problem or syntax. Any thoughts would be greatly appreciated...that is certain. I am on my fourth install and commisioning of a PC in two months and getting weary.
    Pard me, I'm not sure I understood. Do you mean it takes you 2 full days to reinstall Windows 10 in place?
    By the way, i tryed to type the help command ( ?/takeown or something) to see what I was doing wrong, but the syntax I used seemed right to me. Now I'm gonna try cgdsatx latest advice.

    PS: I apology for any language mystake, English is not my first idiom.
      My Computer


  9. Posts : 8
    Windows 10
       #9

    cgdsatx said:
    boot to SAFE MODE

    make sure theres a space between /d y

    or put

    attrib "c:\program files\windowsapps" -h
    Sintax was correct, still say y is not an acceptable parameter;
    The attrib line returns "Access denied"
      My Computer


  10. Posts : 69
    Windows 10 v1607 Pro 64 bit
       #10

    Hi there ... Mttws10...Pleased to meet you.

    Yes! It took about two days to fully install Windows10 (again) on the Dell Optiplex 755, with the third party applications, export/import contacts and bookmarks and configuration changes. So this is quite important.

    The etiology is uncertain. We both may have an insight as to what may have caused the corrupted registry. No malware detected (Avira). I suspect the WOL was something to do with it. I've been doing a lot of installation work on three Dell computers, on my network and it was the Dell 755 that had the problem and just a few days after it had a memory problem that caused the computer to bleep, requiring a prior new installation. Possibly Microsoft detected unusual activity and it triggered a security device. I don't know.

    System Restore is fragile....Keep going....we need someone to test a Fix. The world will be eternally grateful.
    Kind regards from Simon.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:26.
Find Us




Windows 10 Forums