Hello @Gareth Davies
I can recommend the next discussion for ideas about a script to pull the information for you:
I usually have this script to tell what are the access to specific directory:
$FolderPath = Get-ChildItem -Directory -Path "C:\mydirectory" -Recurse -Force
$Output = @()
ForEach ($Folder in $FolderPath) {
$Acl = Get-Acl -Path $Folder.FullName
ForEach ($Access in $Acl.Access) {
$Properties = [ordered]@{'Folder Name'=$Folder.FullName;'Group/User'=$Access.IdentityReference;'Permissions'=$Access.FileSystemRights;'Inherited'=$Access.IsInherited}
$Output += New-Object -TypeName PSObject -Property $Properties
}
}
$Output | Out-GridView
Hope this helps with your query,
----------
--If the reply is helpful, please Upvote and Accept as answer--