added group attributes
This commit is contained in:
parent
1709b2a79d
commit
07c10b68e3
@ -12,9 +12,9 @@ $Read = 'ACL-'+$ProjectName+'-RO'
|
||||
$Write = 'ACL-'+$ProjectName+'-RW'
|
||||
|
||||
if($PSBoundParameters.ContainsKey("Server")){
|
||||
New-ADGroup -Path $ACL -Server $Server -Name $Read
|
||||
New-ADGroup -Path $ACL -Server $Server -Name $Write
|
||||
New-ADGroup -Path $ACL -Server $Server -Name $Read -GroupCategory Security -GroupScope Global
|
||||
New-ADGroup -Path $ACL -Server $Server -Name $Write -GroupCategory Security -GroupScope Global
|
||||
} else {
|
||||
New-ADGroup -Path $ACL -Name $Read
|
||||
New-ADGroup -Path $ACL -Name $Write
|
||||
New-ADGroup -Path $ACL -Name $Read -GroupCategory Security -GroupScope Global
|
||||
New-ADGroup -Path $ACL -Name $Write -GroupCategory Security -GroupScope Global
|
||||
}
|
||||
|
@ -12,9 +12,9 @@ $Read = 'GR-'+$ProjectName+'-RO'
|
||||
$Write = 'GR-'+$ProjectName+'-RW'
|
||||
|
||||
if($PSBoundParameters.ContainsKey("Server")){
|
||||
New-ADGroup -Path $Roles -Server $Server -Name $Read
|
||||
New-ADGroup -Path $Roles -Server $Server -Name $Write
|
||||
New-ADGroup -Path $Roles -Server $Server -Name $Read -GroupCategory Security -GroupScope Global
|
||||
New-ADGroup -Path $Roles -Server $Server -Name $Write -GroupCategory Security -GroupScope Global
|
||||
} else {
|
||||
New-ADGroup -Path $Roles -Name $Read
|
||||
New-ADGroup -Path $Roles -Name $Write
|
||||
New-ADGroup -Path $Roles -Name $Read -GroupCategory Security -GroupScope Global
|
||||
New-ADGroup -Path $Roles -Name $Write -GroupCategory Security -GroupScope Global
|
||||
}
|
Loading…
Reference in New Issue
Block a user