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

Page 3 of 30 FirstFirst 1234513 ... LastLast

  1. Posts : 11
    win10x64
       #21

    lx07 said:
    Is your user name "administrators" though as @cgdsatx said to put in?


    cgdsatx said:

    put your username not administrators


    smh
      My Computer


  2. Posts : 11
    win10x64
       #22

    jsdeprey said:
    Hello, I am having this same issue.
    Recently it seemed like my PC was running some game worse than it had been a week ago and I thought maybe something had changed or I had a virus, but virus scans showed no issues.
    I normally just do a system restore when something like this happens, but I got the error "0x80070091" so I thought maybe I did have a virus because I have seen a virus kill system restore many times before. Anyway, I first did a Windows 10 reset and still had the same System Restore issues just doing a quick create and restore, so thought maybe the virus was still there.
    So then I did a full new install of Windows 10, a new System Restore seemed to work fine, but after another day and some software installs and Windows updates another System Restore test failed with same error. Check Disks look fine also.
    I have not tried the fix here yet, but I am more trying to figure out why this fix is needed on a new install, if this a windows update bug? I never noticed this before but I can not even browse "c:\program files\windowsapps" at all, is that normal, I have not really poked around Windows 10 much but I am not used to there being a directory on my own OS that I can not look in to.
    My system seems to be running fine now, and I can live without System Restore, but am totally lost how Microsoft can break things like this and not know it.
    Thanks.
    there are many files and folders that are system only

    are you trying to create a restore?
      My Computer


  3. Posts : 187
    Windows 10
       #23

    I wonder if MicroSoft is planning on fixing this problem any time soon. It seems to be wide spread and it's a definite problem. I'm hesitant to rename or delete the windowsapps folder as I don't want to mess anything else up.
      My Computer


  4. Posts : 4
    Windows 10 Pro
       #24

    cgdsatx said:
    there are many files and folders that are system only

    are you trying to create a restore?
    I have never seen folders that a system administrator can not see in to before, but that seems totally messed up to me.
    I can create a restore point fine, but when I try to restore to that point it fails just like on this thread with a error "0x80070091".

    I am trying to understand is this a windows bug, I just installed windows 10 fresh and system restore worked but them after a few updates it stopped working and I get this same error again.

    Is this an issue that effects every currently updated version of Windows 10? Maybe test on other PC's to see if they are having the same issue? create restore point then right away restore to that new point and see if you get the same issue?
    Last edited by jsdeprey; 22 Feb 2017 at 22:07.
      My Computer


  5. Posts : 11
    win10x64
       #25

    I assume this is all because of the way windows 10 handles safe mode now, namely that it goes in to a "recovery environment" that doesn't require a "user" log in.
      My Computer


  6. Posts : 8
    Windows 10
       #26

    cgdsatx said:
    smh
    Sorry :°D
      My Computer


  7. Posts : 8
    Windows 10
       #27

    lx07 said:
    OK, one step forward :) Is your user name "administrators" though as @cgdsatx said to put in? I guess not.

    chcp changes (or displays) the code page of the current job. It is slightly more complicated than this but you can think of a code page as the language. 437 is English. Anything you type after that will be assumed to be in English. This applies to input you give the shell but it doesn't invoke some sort of dictionary.

    If there exists a group object called "Utilisatuers" it will not transfer it into "Users" for you.

    I'm more than happy to but as you wish. I can't help if you don't say what you've done though.

    All these switches make a difference though. When you take ownership and assign authority you have to do it for the same person.

    You could try this:

    Change your job to English
    Code:
    chcp 437
    Take ownership for yourself
    (note there is no /a here assigning it to administrators group, the /r means recuse and the default in /d is defined as Y which is Yes in English which is the language you just told it you would write in.
    Code:
    takeown /f "C:\Program Files\WindowsApps" /r /d Y
    Give yourself full authority
    Don't change this. Just copy it exactly as it is.
    Code:
    icacls "C:\Program Files\WindowsApps" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    Specifically to not change "%USERDOMAIN%\%USERNAME%" to your PC name or your name or "Administrator" or "Administrateur" or "Administrateurs" or anything. These names are system language specific and are not affected by what language you are writing in. They are objects that exist with specific names created when you install Windows. The shell will populate it for you.

    You can see this if you enter (just for interest)
    Code:
    echo "%userdomain%\%username%"
    I really can't help any more unless you say what language you are using and give a screenshot of the error but I will say this is one reason I install Windows as en-US. It simply makes life easier.
    It worked. Thank you very much. Do I have to "give back" the ownership or something now?
      My Computer


  8. Posts : 5,478
    2004
       #28

    mattws10 said:
    It worked. Thank you very much. Do I have to "give back" the ownership or something now?
    Good news. No you do not. If everything is working then I would leave it as it is.

    If you want to though (for completeness for example) then you can do it like this...
    Code:
    icacls "C:\Program Files\WindowsApps" /remove:g "%USERDOMAIN%\%USERNAME%" /t
    This only removes the authority explicity granted to your profile which you added before. Other authorities will remain as they were. It doesn't add any "deny" authority for your profile so don't worry about that.

    You can then reset the owner to TrustedInstaller
    Code:
    icacls "C:\Program Files\WindowsApps" /setowner "NT SERVICE\TrustedInstaller"
    You can then check the authority - it should look like this (type the bit in red and then see if the other looks the same)
    Code:
    Microsoft Windows [Version 10.0.14393]
    (c) 2016 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>icacls "C:\Program Files\WindowsApps"
    C:\Program Files\WindowsApps NT SERVICE\TrustedInstaller:(F)
                                 NT SERVICE\TrustedInstaller:(OI)(CI)(IO)(F)
                                 S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204:(RX)
                                 S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204:(OI)(CI)(IO)(GR,GE)
                                 NT AUTHORITY\SYSTEM:(F)
                                 NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
                                 BUILTIN\Administrators:(CI)(RX)
                                 NT AUTHORITY\LOCAL SERVICE:(OI)(CI)(RX)
                                 NT AUTHORITY\NETWORK SERVICE:(OI)(CI)(RX)
                                 BUILTIN\Users:(Rc,S,RD,REA,X,RA)
                                 Mandatory Label\Low Mandatory Level:(OI)(CI)(NW)
    
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Windows\system32>
    HTH
      My Computer


  9. Posts : 3
    Windows 10
       #29

    Hey, many thanks! I am 73 years old and mostly blind now and use a text-to-speech screenreader these days to navigate and listen to the Internet, et al. I was able to follow most of this thread and resolve my problem with System Restore and the windowsApp folder. I did not use the CMD prompt however. I gained control of the folder using the prompts in Windows 10 and then was finally able to rename the folder by using cntrl-alt-del and signing out and then back in (instead of using exit and restarting in Safe Mode). Anyway, once I renamed the windowsApp folder, System Restore started working again and a new WindowsApp was created with all the apps restored. Many thanks for leading me in the right direction to fix this problem without needing to do a full system image restore. You are the best!!!
      My Computer


  10. Posts : 187
    Windows 10
       #30

    After this fix is applied does System Restore continue to work indefinitely or does it mess up again?
      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 10:06.
Find Us




Windows 10 Forums