Skip to content

Instantly share code, notes, and snippets.

View diecknet's full-sized avatar
👋

Andreas Dieckmann diecknet

👋
View GitHub Profile
<#
.SYNOPSIS
I used this to find inconsistent file/folder ACL for FSLogix Profile Container folders in Azure Files (Azure Storage). It's not perfect but did a good enough job. This script is highly specific for my use-case. Feel free to change it for your needs.
.DESCRIPTION
This script scans the specified folder for subfolders. It checks if the Owner of the subfolder has exactly "Modify, Synchronize" rights for the folder. It then checks if the subfolder-owner also has these rights for files inside that subfolder. If there is more than one (1) file in the subfolder, it throws a warning but continues.
.NOTES