Hi,
Is there a way to disable inheritance at the container (folder) level with the Carbon module in DSC?
Currently Carbon_Permission: ApplyTo = 'ContainerAndSubContainersAndLeaves' will set the current identity, but is there a way to turn off the folder inheritance also? The built-in DSC "File" module creates the folder with inheritance enabled. I currently have to use a different module to turn this off. Outside of DSC I would use Disable-AclInheritance to do this, but am looking for this within DSC.
Looking for something in DSC similar to the following operation:
New-Item -Path 'c:\myFolder' -ItemType Directory
Grant-Permission -Identity myIdentity -Path 'c:\myFolder' -Permission ReadAndExecute -ApplyTo SubContainersAndLeaves
Disable-AclInheritance -Path 'c:\myFolder'
New-Item -Path 'c:\myFolder\Leaf1' -ItemType Directory
This way permission inheritance for the children/leaves starts inheritance from the myFolder level, not the root of it