snap
This commit is contained in:
parent
32158885bc
commit
2248f91d25
@ -70,9 +70,7 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
|
||||
$rid = $ReadTarget.SID
|
||||
$wid = $WriteTarget.SID
|
||||
$fsrr = "ReadAndExecute"
|
||||
$fsrw = "Modify"
|
||||
$fsrad = "CreateDirectories"
|
||||
$fsraf = "CreateFiles "
|
||||
$fsrw = "Write"
|
||||
$type = "Allow"
|
||||
|
||||
|
||||
@ -81,10 +79,10 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
|
||||
|
||||
$FolderACL= Get-Acl -Path $folder
|
||||
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
||||
Set-Acl -Path $folder.FullName -AclObject $FolderACL
|
||||
Set-Acl -Path $folder -AclObject $FolderACL
|
||||
$FolderACL= Get-Acl -Path $folder
|
||||
$FolderACL.SetAccessRule($fileSystemAccessRuleW)
|
||||
Set-Acl -Path $folder.FullName -AclObject $FolderACL
|
||||
Set-Acl -Path $folder -AclObject $FolderACL
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user