Check for folders and files where access is denied with Powershell

The following script is from another blog that was slightly adapted by someone who left a comment there: [email protected]() gci -recurse -Path “C:\test” -ea SilentlyContinue -ErrorVariable +errors | Out-Null $errors.Count $errors | select -expand categoryinfo | select reason,targetname | export-csv -NoTypeInformation -Delimiter “;” ErrorList.csv I created a folder on the root of my C: drive called test, I then removed […]