Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion DSCResources/cNtfsPermissionEntry/cNtfsPermissionEntry.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,14 @@ function New-FileSystemAccessRule

if ($NoPropagateInherit -eq $true -and $InheritanceFlags -ne 'None')
{
[System.Security.AccessControl.PropagationFlags]$PropagationFlags = 'NoPropagateInherit'
if ($PropagationFlags -eq 'None')
{
[System.Security.AccessControl.PropagationFlags]$PropagationFlags = 'NoPropagateInherit'
}
else
{
[System.Security.AccessControl.PropagationFlags]$PropagationFlags = 'NoPropagateInherit', 'InheritOnly'
}
}
}
else
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ The **cNtfsPermissionsInheritance** DSC resource provides a mechanism to manage

## Versions

### Unreleased

* **cNtfsPermissionEntry**: Fixed an error when **NoPropagateInherit** is set to `$true` ([#20](https://github.com/SNikalaichyk/cNtfsAccessControl/pull/20)).

### 1.4.1 (February 6, 2019)

* **cNtfsAuditRuleInformation**: Fixed an error when **NoPropagateInherit** is set to `$true` ([#14](https://github.com/SNikalaichyk/cNtfsAccessControl/pull/14)).
Expand Down