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

Page 2 of 30 FirstFirst 123412 ... LastLast

  1. Posts : 11
    win10x64
       #11

    are you going into safe mode with your user account or as Administrator? It works so I'm not sure what your doing
    Attached Thumbnails Attached Thumbnails System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091-111.jpg  
      My Computer


  2. Posts : 5,478
    2004
       #12

    mattws10 said:
    ...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?
    mattws10 said:
    PS: I apology for any language mystake, English is not my first idiom.
    What language is your Windows installation?

    Apparently the default answer you specify after the /d switch has to be the first letter of the word that means "Yes" in your Windows system language.

    I can't confirm as I always install en-US but it is what it claims here: https://social.technet.microsoft.com...10itprogeneral
    and here:
    Take Ownership - Add to Context Menu in Windows 10

    So in French you would specify (from an administrator command prompt)

    takeown /f "C:\Program Files\WindowsApps" /r /d O
    (because "O" is short for "Oui" which means "Yes").

    All the examples I could find were French so just try picking the first letter of whatever the word "Yes" is in your language if it is something else.
      My Computer


  3. mdc
    Posts : 1
    Windows 10
       #13

    This worked for me, thanks. Quick question though. After system is Restored, should I change the name back to WindowsApp or does it matter for functionality.

    I should add that I was getting an error message in the Command line after the Rename stage. After going back in and looking at the file (WindowsApp), I realized that the folder was Read Only and Hidden, then I had to authorize administrators to view/edit. After I made those changes I was able to Restore my system back.

    One issue I have and still have, is that Windows10 mysterious lost/hid every file and some sub folders within a folder I use often. I noticed it was missing after I downloaded an app, which asked for updates, so I deleted the app and Restored the system. Still can't see files in folder.


    cgdsatx said:
    boot to SAFE MODE

    make sure theres a space between /d y

    or put

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

    then

    takeown /f "C:\Program Files\WindowsApps" /r /d y


    AND no space in Windowsapps on ANY commands AND put your username not administrators

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

    rename "C:\Program Files\WindowsApps" WindowsAppsold

    and to rename you may have to ,if you didn't before

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








      My Computer


  4. Posts : 8
    Windows 10
       #14

    cgdsatx said:
    are you going into safe mode with your user account or as Administrator? It works so I'm not sure what your doing
    I go into safe mode as in Option one here : https://www.tenforums.com/tutorials/...a.html#option1
    Thank you for trying to help me
      My Computer


  5. Posts : 8
    Windows 10
       #15

    lx07 said:
    What language is your Windows installation?

    Apparently the default answer you specify after the /d switch has to be the first letter of the word that means "Yes" in your Windows system language.

    I can't confirm as I always install en-US but it is what it claims here: https://social.technet.microsoft.com...10itprogeneral
    and here:
    Take Ownership - Add to Context Menu in Windows 10

    So in French you would specify (from an administrator command prompt)

    takeown /f "C:\Program Files\WindowsApps" /r /d O
    (because "O" is short for "Oui" which means "Yes").

    All the examples I could find were French so just try picking the first letter of whatever the word "Yes" is in your language if it is something else.
    Typing "TAKEOWN /?" allows me to see how the command works, and it shows that 'y' should be the right parameter for what I want to do. I also tried with the first letter of our "yes-word" and it doesn't worked. By the way, thank you for trying to help me.
      My Computer


  6. Posts : 5,478
    2004
       #16

    mattws10 said:
    Typing "TAKEOWN /?" allows me to see how the command works, and it shows that 'y' should be the right parameter for what I want to do. I also tried with the first letter of our "yes-word" and it doesn't worked. By the way, thank you for trying to help me.
    You are welcome but your analysis is wrong. takeown /? shows you the help text translated from English. It was never correctly translated. There are hundreds of posts about this but let us not go off on a tangent.

    Just let me know what chcp (with no parameters) shows. Perhaps there is a problem in your language but as I don't know what your language is I'd be guessing.

    System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091-capture.png

    After that we can forget language and just convert your code page into en-US (for the specific terminal session) and see if that works.

    Like this:
    Code:
    chcp
    chcp 437
    takeown /f "C:\Program Files\WindowsApps" /r /d Y

    If that doesn't work post a screenshot as otherwise I'm just guessing.

    If you can show me a screenshot of the error I'm happy to install Windows in your language and see if I can recreate it.
      My Computer


  7. Posts : 8
    Windows 10
       #17

    lx07 said:
    You are welcome but your analysis is wrong. takeown /? shows you the help text translated from English. It was never correctly translated.
    You were right! Now takeown works, but i still have problems with 'icacls "C:\Program Files\Windows Apps" /grant administrators:F /t', which comes up whit an access denied statement
    lx07 said:
    Just let me know what chcp (with no parameters) shows. Perhaps there is a problem in your language but as I don't know what your language is I'd be guessing.
    I'm not sure I understood how chcp works; what is supposed to do?

    lx07 said:
    If you can show me a screenshot of the error I'm happy to install Windows in your language and see if I can recreate it.
    I'd prefer to not borrowing you so much, unless we don't find other solutions, but thank you.
      My Computer


  8. Posts : 5,478
    2004
       #18

    mattws10 said:
    You were right! Now takeown works, but i still have problems with 'icacls "C:\Program Files\Windows Apps" /grant administrators:F /t', which comes up whit an access denied statement
    OK, one step forward :) Is your user name "administrators" though as @cgdsatx said to put in? I guess not.

    mattws10 said:
    I'm not sure I understood how chcp works; what is supposed to do?
    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.

    mattws10 said:
    I'd prefer to not borrowing you so much, unless we don't find other solutions, but thank 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.
      My Computer


  9. Posts : 4
    Windows 10 Pro
       #19

    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.
      My Computer


  10. Posts : 11
    win10x64
       #20

    mdc said:
    This worked for me, thanks. Quick question though. After system is Restored, should I change the name back to WindowsApp or does it matter for functionality.

    I should add that I was getting an error message in the Command line after the Rename stage. After going back in and looking at the file (WindowsApp), I realized that the folder was Read Only and Hidden, then I had to authorize administrators to view/edit. After I made those changes I was able to Restore my system back.

    One issue I have and still have, is that Windows10 mysterious lost/hid every file and some sub folders within a folder I use often. I noticed it was missing after I downloaded an app, which asked for updates, so I deleted the app and Restored the system. Still can't see files in folder.
    it makes a new windows app folder during restore you can copy and drag the stuff from the old to the new if you want
    probably doesn't matter but if you want to you can do this

    How to reinstall all the Windows 10 default apps with PowerShell | Digital Citizen


    the attrib command should have "unhide" the app folder , before the restore I mean once restore goes through it will be hidden again , check hidden items in view tab of explorer .

    the missing files I don't know, maybe check hidden items in view tab of explorer see if they're "hidden" files , or I've heard to check under the C:\USERS some times there in another users folder or under c:\windowsold\users or even in public .
    If you created a new Microsoft account when you upgraded from Windows 7, your files may be located in a disabled administrator account. You'll need to enable this account and sign in again to see your files.
    Personally what I would do is type a name of a file or folder that was missing and I remember and just search the HD. There's other options but those are most common to try first.
    Last edited by cgdsatx; 22 Feb 2017 at 20:09.
      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 16:20.
Find Us




Windows 10 Forums