Fix You have been denied permission to access this folder

How to fix “You have been denied permission to access this folder” in Windows 10? This error can appear when accessing a folder in Windows 10, you might get “You…