New
#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
but the special permission is still not present :-(Code:PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *Fitbit*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
- - - Updated - - -
still hoping for help and counting on you ;-)
Last edited by 5ggggg; 30 May 2020 at 08:15.