5ERROR_ACCESS_DENIEDWin32 error
Matched as 0x80070005 wraps Win32 error 5Access is denied.
As an HRESULT: 0x80070005 · decimal -2147024891- NTFS, share or registry permissions do not allow the action
- The process is not elevated (UAC)
- Antivirus, Controlled Folder Access or AppLocker is blocking it
- A file is read-only or owned by TrustedInstaller
whoami /groups icacls "<path>" Get-MpPreference | Select-Object EnableControlledFolderAccess