#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
I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz reply as I’m looking to create my own blog and would like to know where u got this from. cheers
Its wonderful as your other posts : D, thanks for putting up. “Even Albert Einstein reportedly needed help on his 1040 form.” by Ronald Reagan.
Only a smiling visitant here to share the love (:, btw outstanding design and style. “Better by far you should forget and smile than that you should remember and be sad.” by Christina Georgina Rossetti.