Hello,
Thanks for the reply. This is the error I get once I execute the script in powershell:
Get-ChildItem : Cannot find path 'C:\Users\System.Data.DataRow' because it does not exist.
At C:\Users\Get-Permissions.ps1:18 char:28
+ $subFolders = Get-ChildItem <<<< -Name $networkPath