Not Sure if you are still having this issue. But if anybody else have this issue, Its most of the time a permission issue to :
- "C:\Windows\System32\drivers"
- "C:\Windows\System32\DriverStore"
Take ownership of those folder and grant full control to everyone.
Check if this works :)
The WindowsApps
folder is one of the most heavily protected folders in Windows 10. It contains all the Windows UWP apps, to which Microsoft zealously guards the access.
The protections on this folder may change across Windows versions.
The usual methods of taking ownership and assigning permissions are not enough for this folder, but are still required as first step to gaining access.
After executing them, accessing the folder is now possible for copying, but editing is still blocked. To edit, one needs to save the file elsewhere, and only then replace the original with the edited version.
A further note is that restoring the ownership of the folder to TrustedInstaller
is possible without losing the extra permissions that were assigned,
by using the command:
icacls "%ProgramFiles%\WindowsApps" /setowner "NT Service\TrustedInstaller" /t
If someone wishes to use an elevated Command Prompt for gaining
access to the folder, then these are the commands :
takeown /F "%ProgramFiles%\WindowsApps"
takeown /F "%ProgramFiles%\WindowsApps" /r /d y
icacls "%ProgramFiles%\WindowsApps" /grant Administrators:F
icacls "%ProgramFiles%\WindowsApps" /grant Administrators:F /t
I also note that permission problems can be avoided by using the following
commands before and after changing permissions to completely
restore the original permissions :
icacls "%ProgramFiles%\WindowsApps" /save WindowsApps.acl
icacls "%ProgramFiles%" /restore WindowsApps.acl
To complement the poster's remark about restoring
the original permissions on the folder while not having saved
these permissions before starting, this is done by entering in an elevated
Command Prompt (cmd) the command :
icacls "%ProgramFiles%\WindowsApps" /q /c /t /reset
If the command does not work, it needs to be redone from a Windows boot CD/USB,
as explained in the post
Reset default ACLs for C:\Program Files\WindowsApps:
- Follow the instructions on this page to create the
Windows Installation Media
- Boot from the USB/CD, click "Repair my computer" upon reaching the Install button
- Select Troubleshoot, then Command Prompt
- Your current drive
C:
will be the boot media, with your Windows system disk
likely in D:
, so verify using dir D:
, and if not, then search for the
right drive-letter
Using the drive letter you just found (maybe D:\
), issue the command:
icacls "D:\Program Files\WindowsApps" /q /c /t /reset
Wait for the operation to complete, and check the output for errors
- Reboot.
Best Answer
Based on my and OP's experiment, the pause function releases the files and hence one can disconnect the drive involved in the operation. It also works with large files and networked storage.
This feature is first introduced in Win 8. More on that can be found in this superuser thread.