Restore special permissions of C:\Program Files\WindowsApps and subs


  1. Posts : 17
    W10 W8.1 W7
       #1

    Restore special permissions of C:\Program Files\WindowsApps and subs


    Hello @all... it is about
    C:\Program Files\WindowsApps
    and its subfolders like
    Fitbit.Fitbit_2.44.1997.0_x64__6mqt6hf9g46tw

    1 I had troubles deinstalling junk apps. So I changed the owner of all Files and Folders to the admin group
    2 I added read permissions for all packages and users with inheritance and replaced existing permissions.

    BUT doing that I lost

    3 this special permission WIN://SYSAPPID Contains "AppName" shown on the upper part of the screenshot
    (C:\Program Files\WindowsApps\828B5831.HiddenCityMysteryofShadows_1.34.3402.0_neutral_~_ytsefhwckbdv6)

    4 The Fitbit app (and many others) lost this permission. It is shown in the lower part of the screenshot

    5 Right now everything works until the next W10 update (where trusted installer is set as owner, the special perm. is still missing and permissions for users and packages got lost). So I have to redo all the owner and permission settings again. And in the meantime the file associations to those apps also got lost) !!!

    6 I saved .acl from the upper (correct) app with icacls and it looks like this 828B5831.HiddenCityMysteryofShadows_1.34.3402.0_neutral_~_ytsefhwckbdv6
    D:AI (XA;OICI;0x1200a9;;;BU;(WIN://SYSAPPID Contains "828B5831.HiddenCityMysteryofShadows_ytsefhwckbdv6")) ...

    Now i count on You ;-):
    How can I restore this special permissions including the owner trustedInstaller for all those subfolders and files
    ? Especially how is the solution for the gerneric part of the AppName.

    7 Maybe it could be some kind of FOR loop iterating the folders layer below C:\Program Files\WindowsApps. And then set the inheritance for all subfolders and files below those.

    8 OR maybe an easier alternative is to reinstall all those apps. In that case I would be very greatfull for the right powershell commands ;-). I tried
    Code:
    PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *Fitbit*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
    but the special permission is still not present :-(

    Restore special permissions of C:\Program Files\WindowsApps and subs-permissions.png

    - - - Updated - - -

    still hoping for help and counting on you ;-)
    Last edited by 5ggggg; 30 May 2020 at 08:15.
      My Computer


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

    Hi, this might have helped you before you started: in principle, back up before hacking..

    Backup and Restore Permissions of File, Folder, or Drive in Windows

    Tweaking.com's free repair tool (it's cautious) includes 2 or 3 permissions repairs. None are specific to a folder- you might be lucky. (Google)
      My Computers


 

  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 22:27.
Find Us




Windows 10 Forums