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