put in inheritance
This commit is contained in:
parent
96721a0435
commit
8c134c550f
@ -74,8 +74,8 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
|
|||||||
$type = "Allow"
|
$type = "Allow"
|
||||||
|
|
||||||
|
|
||||||
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,$type)
|
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,"ContainerInherit,ObjectInherit","None",$type)
|
||||||
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,$type)
|
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,"ContainerInherit,ObjectInherit","None",$type)
|
||||||
|
|
||||||
$FolderACL= Get-Acl -Path $folder
|
$FolderACL= Get-Acl -Path $folder
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
||||||
|
Loading…
Reference in New Issue
Block a user