I scan our network drives routinely to generate usage statistics. Sometimes I encounter situations where a user acidentally removed my permissions
Note: Giving users Full Control is not my call and it cannot be changed
I created a litle script that recursively looks through the network drive to record those denied permissions. It works fine on my local D and C drives, but is not recording the error when run against a network drive. The fields in $error are the same regardless of the drive scanned so I am unsure what I'm missing.