Compare commits
No commits in common. "5a964bafe63da3ac9528cacb4350d6004e1505e6" and "cdfca3256ffcaa69d671de367ab4c69b57e6ff46" have entirely different histories.
5a964bafe6
...
cdfca3256f
@ -69,22 +69,16 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
|
|||||||
$wid = $WriteTarget.SID
|
$wid = $WriteTarget.SID
|
||||||
$fsrr = "ReadAndExecute"
|
$fsrr = "ReadAndExecute"
|
||||||
$fsrw = "Write"
|
$fsrw = "Write"
|
||||||
$fsrad = "CreateDirectories"
|
|
||||||
$fsraf = "CreateFiles "
|
|
||||||
$type = "Allow"
|
$type = "Allow"
|
||||||
|
|
||||||
|
|
||||||
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
$fileSystemAccessRuleR = New-Object System.Security.AccessControl.FileSystemAccessRule($rid,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
||||||
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,"ContainerInherit, ObjectInherit","None",$type)
|
$fileSystemAccessRuleW = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrw,"ContainerInherit, ObjectInherit","None",$type)
|
||||||
$fileSystemAccessRuleWR = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
$fileSystemAccessRuleWR = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrr,"ContainerInherit, ObjectInherit","None",$type)
|
||||||
$fileSystemAccessRuleWAF = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsraf,"ContainerInherit, ObjectInherit","Synchronize",$type)
|
|
||||||
$fileSystemAccessRuleWAD = New-Object System.Security.AccessControl.FileSystemAccessRule($wid,$fsrad,"ContainerInherit, ObjectInherit","Synchronize",$type)
|
|
||||||
|
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
$FolderACL.SetAccessRule($fileSystemAccessRuleR)
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleW)
|
$FolderACL.SetAccessRule($fileSystemAccessRuleW)
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleWR)
|
$FolderACL.SetAccessRule($fileSystemAccessRuleWR)
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleWAF)
|
|
||||||
$FolderACL.SetAccessRule($fileSystemAccessRuleWAD)
|
|
||||||
|
|
||||||
Set-Acl -Path $folder.FullName -AclObject $FolderACL
|
Set-Acl -Path $folder.FullName -AclObject $FolderACL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user