$rootfolder = Get-ChildItem -Path \server\user_home_root_folder foreach ($userfolder in $rootfolder) { $userfolder.FullName get-acl $userfolder.FullName | foreach {write-host "The owner is : " $_.Owner "nNTFS Security rights : " $_.AccessToString} Write-Host "n" }
i have this scrpit, and I need to modify it to export this data to a CSV then change it and apply this changes back to the ACL of this folders.
any thoughts?