Since the question How to get access to C:\Program Files\WindowsApps? was marked as a dupe, I'll add another solution to get access to C:\Program Files\WindowsApps
, from https://www.maketecheasier.com:
Save the following as a .reg
file and run it:
Windows Registry Editor Version 5.00
; MajorGeeks.Com
; How To Take Full Ownership of Files & Folders
; https://www.majorgeeks.com/content/page/take_full_ownership_of_files_folders.html
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
E
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
then open MS Explorer, right click on C:\Program Files\WindowsApps
and select “Take Ownership.”. It'll show:

then you can access C:\Program Files\WindowsApps
.
Notes: