From 07c10b68e3ce061bb96da5f4dc2426ca2d6345c0 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 14:10:28 +0200 Subject: [PATCH] added group attributes --- AddProjectACL.ps1 | 8 ++++---- AddProjectRoles.ps1 | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AddProjectACL.ps1 b/AddProjectACL.ps1 index b7723da..0eb68f6 100644 --- a/AddProjectACL.ps1 +++ b/AddProjectACL.ps1 @@ -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 } diff --git a/AddProjectRoles.ps1 b/AddProjectRoles.ps1 index 6bc7417..db6b457 100644 --- a/AddProjectRoles.ps1 +++ b/AddProjectRoles.ps1 @@ -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 } \ No newline at end of file