Share folder permissions

#Share Folder Path

$FolderPath = dir -Path “\\server1.vmwarenterprise.com\Reports\” -Recurse -Directory -Force
$Report = @()
Foreach ($Folder in $FolderPath) {
$Acl = Get-Acl -Path $Folder.FullName
foreach ($Access in $acl.Access)
{
$Properties = [ordered]@{‘FolderName’=$Folder.FullName;’AD
Group or User’=$Access.IdentityReference;’Permissions’=$Access.FileSystemRights;’Inherited’=$Access.IsInherited}
$Report += New-Object -TypeName PSObject -Property $Properties
}
}
$Report | Export-Csv -path “C:\temp\FPermissions.csv” -NoTypeInformation

20 Comments

  1. Thanks a bunch for sharing this with all of us you actually know what you’re talking about! Bookmarked. Please also visit my site =). We could have a link exchange contract between us!

  2. Greetings! I’ve been following your website for a while now and finally got the courage to go ahead and give you a shout out from New Caney Tx! Just wanted to tell you keep up the fantastic work!

  3. great post, very informative. I wonder why the other experts of this sector don’t notice this. You should continue your writing. I am confident, you’ve a great readers’ base already!

  4. I have been exploring for a little for any high quality articles or blog posts in this kind of space . Exploring in Yahoo I ultimately stumbled upon this site. Reading this information So i?¦m satisfied to express that I’ve an incredibly just right uncanny feeling I discovered just what I needed. I such a lot definitely will make sure to do not disregard this web site and provides it a glance on a constant basis.

  5. Please let me know if you’re looking for a article author for your weblog. You have some really great articles and I feel I would be a good asset. If you ever want to take some of the load off, I’d love to write some articles for your blog in exchange for a link back to mine. Please send me an e-mail if interested. Kudos!

  6. Thanks for sharing superb informations. Your web site is very cool. I am impressed by the details that you’ve on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my friend, ROCK! I found simply the info I already searched all over the place and just could not come across. What a great web site.

Leave a Reply

Your email address will not be published.