
Sometimes, when you try to update permissions you get the following error message: This access control list is not in canonical form and therefore cannot be modifiedįortunately, there is an easy way to fix this behavior: Don’t forget hidden files and foldersįor all following actions, we will enumerate a list of files and folders with the Get-ChildItem cmdletīe sure to not forget sub-objects by using the Recurse parameter.Įnsure also to include all hidden objects with the Force parameter.


The latest version is available on PowerShell Gallery here. I prefer to use the very good module of Raimund Andree named NTFSSecurity. Though you can achieve all this with native PowerShell methods and a little scripting,

Sometimes you have to face situations where users have manually added additional permissions on files or folders and/orĪnd now all you want is to make everything clean again by having the same permissions everywhere from the top of the
