added group attributes

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-14 14:10:28 +02:00
parent 1709b2a79d
commit 07c10b68e3
2 changed files with 8 additions and 8 deletions

View File

@ -12,9 +12,9 @@ $Read = 'ACL-'+$ProjectName+'-RO'
$Write = 'ACL-'+$ProjectName+'-RW' $Write = 'ACL-'+$ProjectName+'-RW'
if($PSBoundParameters.ContainsKey("Server")){ if($PSBoundParameters.ContainsKey("Server")){
New-ADGroup -Path $ACL -Server $Server -Name $Read New-ADGroup -Path $ACL -Server $Server -Name $Read -GroupCategory Security -GroupScope Global
New-ADGroup -Path $ACL -Server $Server -Name $Write New-ADGroup -Path $ACL -Server $Server -Name $Write -GroupCategory Security -GroupScope Global
} else { } else {
New-ADGroup -Path $ACL -Name $Read New-ADGroup -Path $ACL -Name $Read -GroupCategory Security -GroupScope Global
New-ADGroup -Path $ACL -Name $Write New-ADGroup -Path $ACL -Name $Write -GroupCategory Security -GroupScope Global
} }

View File

@ -12,9 +12,9 @@ $Read = 'GR-'+$ProjectName+'-RO'
$Write = 'GR-'+$ProjectName+'-RW' $Write = 'GR-'+$ProjectName+'-RW'
if($PSBoundParameters.ContainsKey("Server")){ if($PSBoundParameters.ContainsKey("Server")){
New-ADGroup -Path $Roles -Server $Server -Name $Read New-ADGroup -Path $Roles -Server $Server -Name $Read -GroupCategory Security -GroupScope Global
New-ADGroup -Path $Roles -Server $Server -Name $Write New-ADGroup -Path $Roles -Server $Server -Name $Write -GroupCategory Security -GroupScope Global
} else { } else {
New-ADGroup -Path $Roles -Name $Read New-ADGroup -Path $Roles -Name $Read -GroupCategory Security -GroupScope Global
New-ADGroup -Path $Roles -Name $Write New-ADGroup -Path $Roles -Name $Write -GroupCategory Security -GroupScope Global
} }