Tests/Integration/cNtfsPermissionsInheritance.Config.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#requires -Version 4.0 $TestParameters = [PSCustomObject]@{ Path = (Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath ([Guid]::NewGuid().Guid)) Enabled = $false PreserveInherited = $true } Configuration cNtfsPermissionsInheritance_Config { Import-DscResource -ModuleName cNtfsAccessControl Node localhost { cNtfsPermissionsInheritance Test { Path = $TestParameters.Path Enabled = $TestParameters.Enabled PreserveInherited = $TestParameters.PreserveInherited } } } |