Eliminate UAC “Click Continue to permanently get access to this folder” when opening folders

When recovering data from a failing drive that is slow to read, you will get the occasional “You don’t currently have permission to access this folder. Click Continue to permanently get access to this folder” block that may never (or take forever to) finish.

You can avoid this by using an elevated instance of Explorer. However, the only option in Task Manager is to restart the Windows Explorer process so it’s impossible from a command prompt.

The solution is to perform the following commands from within an elevated session of PowerShell:

taskkill /f /FI "USERNAME eq $env:UserName"/im explorer.exe
c:\windows\explorer.exe /nouaccheck