Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Getting ACL,Owner into a CSV to modify it

$
0
0

$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?



Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>