Around 12-15 gb decrease in C drive after unsuccessful system restore

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 5,478
    2004
       #21

    This is what your system volume information folder should look like with no restore points:

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture.png

    I think you can go ahead and delete SystemRestore/AppxStaging. You can do this however you like - boot from external OS, recovery environment, install USB, Linux as you wish - any will give you authority. You could try even taking authority but this would be more complicated.

    There might be some table containing links and system restore might break but if you don't want to clean install yet then try it. Then turn on system protection, create a restore point and restore to it. That will prove if it works or not.

    I think your problem is due to this System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091 - Windows 10 Forums which is fixed now apparently.

    There might be some table containing links and system restore might break but if you don't want to clean install yet then try it - you have nothing to lose. Then turn on system protection, create a restore point and restore to it. That will prove if it works or not.

    If it doesn't work you don't lose anything - Windows will keep on working - just not system restore.
      My Computer


  2. Posts : 24
    Windows 10 Home
    Thread Starter
       #22

    lx07 said:
    This is what your system volume information folder should look like with no restore points:

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture.png

    I think you can go ahead and delete SystemRestore/AppxStaging. You can do this however you like - boot from external OS, recovery environment, install USB, Linux as you wish - any will give you authority. You could try even taking authority but this would be more complicated.

    There might be some table containing links and system restore might break but if you don't want to clean install yet then try it. Then turn on system protection, create a restore point and restore to it. That will prove if it works or not.

    I think your problem is due to this System Restore fails: AppxStaging %ProgramFiles%\WindowsApp 0x80070091 - Windows 10 Forums which is fixed now apparently.

    There might be some table containing links and system restore might break but if you don't want to clean install yet then try it - you have nothing to lose. Then turn on system protection, create a restore point and restore to it. That will prove if it works or not.

    If it doesn't work you don't lose anything - Windows will keep on working - just not system restore.
    Thank you for your reply and time

    I understood that i can delete the SystemRestore/AppxStaging files. the problem is that i don't know how to do it

    The thing is i am not a computer expert or IT guy. I am biology researcher who has learn few things about computer from google.

    The suggestion you are giving as to " boot from external OS, recovery environment, install USB, Linux as you wish" i dont know anything about it. I have never done booting. I can learn but i am scared that i may mess up.

    The link you have given shows taking ownership of "C:\Program Files\WindowsApps" but i need a way to gain access to C:\system volume. Delete the app folder and than again restore the ownership.

    Is there any easy way to do it without booting?
      My Computer


  3. Posts : 5,478
    2004
       #23

    jakkaas said:
    i need a way to gain access to C:\system volume.
    Don't do that!

    If you take ownership of the whole C volume it will end in tears. You only want to delete the one directory "C:\System Volume Information\SystemRestore\AppxStaging"

    Try these commands from an administrator powershell prompt - you can literally copy paste the whole contents of the box below
    Code:
    $folder="C:\System Volume Information\SystemRestore\AppxStaging"
    
    # take ownership
    takeown /f "$folder" /r /d Y
    	
    # Grant full rights to current user
    icacls "$folder" --% /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    
    #delete it
    Remove-Item -recurse -force $folder
    This is the results I get for the above - it fails as I don't have the AppxStaging directory. There is lots of red and error messages.

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture1.png

    and here is what is should look like for you (I deleted a different folder in the same directory by making $folder equal to something else) - nothing red and things saying success.

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture2.png
    Last edited by lx07; 11 Sep 2017 at 10:05. Reason: example
      My Computer


  4. Posts : 24
    Windows 10 Home
    Thread Starter
       #24

    lx07 said:
    Don't do that!

    If you take ownership of the whole C volume it will end in tears. You only want to delete the one directory "C:\System Volume Information\SystemRestore\AppxStaging"

    Try these commands from an administrator powershell prompt - you can literally copy paste the whole contents of the box below
    Code:
    $folder="C:\System Volume Information\SystemRestore\AppxStaging"
    
    # take ownership
    takeown /f "$folder" /r /d Y
    	
    # Grant full rights to current user
    icacls "$folder" --% /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    
    #delete it
    Remove-Item -recurse -force $folder
    This is the results I get for the above - it fails as I don't have the AppxStaging directory. There is lots of red and error messages.

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture1.png

    and here is what is should look like for you (I deleted a different folder in the same directory by making $folder equal to something else) - nothing red and things saying success.

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture2.png
    I am taking a system backup now. Will try and let you know.

    Thank you for reply
      My Computer


  5. Posts : 134,237
    Windows 11 Pro (x64) 23H2 Build 22631.3296
       #25

    System restore does not always work very well, as you are now finding out. I've had mine completely turned off for a long time. I only use Macrium Reflect and only make complete image backups to a 2nd drive. Thats all you really need to do. Keep Windows restore off would be my suggestion for the future.
      My Computers


  6. Posts : 24
    Windows 10 Home
    Thread Starter
       #26

    lx07 said:
    Don't do that!

    If you take ownership of the whole C volume it will end in tears. You only want to delete the one directory "C:\System Volume Information\SystemRestore\AppxStaging"

    Try these commands from an administrator powershell prompt - you can literally copy paste the whole contents of the box below
    Code:
    $folder="C:\System Volume Information\SystemRestore\AppxStaging"
    
    # take ownership
    takeown /f "$folder" /r /d Y
    	
    # Grant full rights to current user
    icacls "$folder" --% /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    
    #delete it
    Remove-Item -recurse -force $folder
    This is the results I get for the above - it fails as I don't have the AppxStaging directory. There is lots of red and error messages.

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture1.png

    and here is what is should look like for you (I deleted a different folder in the same directory by making $folder equal to something else) - nothing red and things saying success.

    Around 12-15 gb decrease in C drive after unsuccessful system restore-capture2.png
    I tried this command and all was going successful. I could see that i was granted permission for all the files. Then deletion started and it was going well until all command started becoming red. [see the screenshot]
    Attachment 152797


    Using treesize i can see that 2 gb of space has been decreased.

    Attachment 152798


    Any idea what went wrong?

    In between my edge history got deleted.

    Also now using treesize i directly opened the AppxStaging folder and tried deleting it. It showing deleting but still folder and subfolders are not deleted. Folder are not seen in recycle bin.

    so now i have the access. the question is how to delete it?
    Edit :
    It seems that i still don't have full access to the remaining folder. I can just read and write over it.
    Last edited by jakkaas; 11 Sep 2017 at 12:08. Reason: Futher detail
      My Computer


  7. Posts : 5,478
    2004
       #27

    jakkaas said:
    [see the screenshot]
    Attachment 152797
    I can't see your picture for some reason.

    jakkaas said:
    Also now using treesize i directly opened the AppxStaging folder and tried deleting it. It showing deleting but still folder and subfolders are not deleted. Folder are not seen in recycle bin.
    That is normal - deleting from the command line (or treesize) immediately deletes things - it doesn't put them in recycle bin.

    jakkaas said:
    It seems that i still don't have full access to the remaining folder. I can just read and write over it.
    You mean you can't delete it?

    Try the command icacls "C:\System Volume Information\SystemRestore\whatever" to see the permissions. Here are mine for the root directory but post your for the directory you can't delete.
    Code:
    c:\>icacls "C:\System Volume Information\SystemRestore"
    C:\System Volume Information\SystemRestore X201\Hali:(F)
                                               BUILTIN\Administrators:(OI)(CI)(F)
                                               NT AUTHORITY\SYSTEM:(OI)(CI)(F)
    
    Successfully processed 1 files; Failed processing 0 files
    Please also post the owner with the "dir /a /q "Whatever directory" command like this:
    Code:
    c:\>dir /a /q "C:\System Volume Information\SystemRestore"
     Volume in drive C has no label.
     Volume Serial Number is 63D0-2EE0
    
     Directory of C:\System Volume Information\SystemRestore
    
    11-Sep-17  16:34    <DIR>          X201\Hali              .
    11-Sep-17  16:34    <DIR>          BUILTIN\Administrators ..
                   0 File(s)              0 bytes
                   2 Dir(s)  19,505,348,608 bytes free
    Last edited by lx07; 11 Sep 2017 at 13:52. Reason: please post the owner as well
      My Computer


  8. Posts : 5,899
    Win 11 Pro (x64) 22H2
       #28

    After reading this entire thread I have to wonder if anyone thought about the windows.old folder? Could it be the culprit?

    Just a thought.
      My Computers


  9. Posts : 5,478
    2004
       #29

    sygnus21 said:
    After reading this entire thread I have to wonder if anyone thought about the windows.old folder? Could it be the culprit?

    Just a thought.
    Not unless there are hard links from Windows.old to "System Volume Information". I don't know if that is even possible. Even if it was it would be a terrible bug as restore points are supposed to contain the information to revert - not contain information to run.

    In any case disk clean-up gets rid of Windows.old - @OldMike (and perhaps someone else) suggested that some time ago.

    The problem here is how to delete rubbish from "C:\System Volume Information" that should (but hasn't) been deleted by turning off system protection.

    I did see a couple of threads on MS website where they just gave up and clean installed - this is an option of course.

    Ideally if it is possible to take ownership and delete this junk it would be better for the OP. If not then perhaps someone else can explain booting from a PE environment as my communication skills aren't great.
      My Computer


  10. Posts : 24
    Windows 10 Home
    Thread Starter
       #30

    I tried even booting from linux (gave my time in learning it and trying) and then when i started to delete these folder, it is saying that i dont have permision to delete it. So basically i couldn't delete it from linux too. now i am goint to sleep. Wasted my day in not doing my work and learning thing which i might not use.

    Anyways Here is the screen shot you asked

    Around 12-15 gb decrease in C drive after unsuccessful system restore-screenshot-45-.png
      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 21:16.
Find Us




Windows 10 Forums