If you don’t have specific permission, Windows will deny you access indefinitely. IF your account has administrative privileges, you can gain access to the file by changing the ownership. You can change the ownership of any file/folder through the GUI.
Method 1: Changing ownership through GUI
This is the easier method and may suit most of the people in taking ownership of any file or folder. However, if you want to go with changing the registry, you can refer to the second method explained below.
You now have complete access and ownership of the file/folder and you can modify it any way you require.
Fix: Can’t move the folder because there is a folder in the same location that…Can’t Delete the MountUUP Folder? Here’s How to Fix ItHow to Delete the windows.old folder on Windows 10What is the ‘$Windows.~BT’ Folder and Should you Delete it?