From 42fd038b5d998ceb7adb4169519a87eed52318f6 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 14:11:19 +0200 Subject: [PATCH] added group attributes --- NewProject.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewProject.ps1 b/NewProject.ps1 index 055b2f0..58b0ab0 100644 --- a/NewProject.ps1 +++ b/NewProject.ps1 @@ -9,12 +9,12 @@ param ( . .\Variables.ps1 if($PSBoundParameters.ContainsKey("Server")){ - New-ADGroup -Path $Projects -Server $Server -Name $ProjectName + New-ADGroup -Path $Projects -Server $Server -Name $ProjectName -GroupCategory Security -GroupScope Global . .\AddProjectACL.ps1 -ProjectName $ProjectName -Server $Server . .\AddProjectRoles.ps1 -ProjectName $ProjectName -Server $Server } else { - New-ADGroup -Path $Projects -Name $ProjectName + New-ADGroup -Path $Projects -Name $ProjectName -GroupCategory Security -GroupScope Global . .\AddProjectACL.ps1 -ProjectName $ProjectName . .\AddProjectRoles.ps1 -ProjectName $ProjectName } \ No newline at end of file