From 2ff38880cb891a8aa307420221ae97b5e0c44569 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 14:46:26 +0200 Subject: [PATCH] added check for project name being set --- NewProject.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/NewProject.ps1 b/NewProject.ps1 index babc31f..4d7de9d 100644 --- a/NewProject.ps1 +++ b/NewProject.ps1 @@ -21,7 +21,6 @@ if($PSBoundParameters.ContainsKey($ProjectName)){ $acl | ForEach-Object {New-ADGroupMember -Identity $ret -Member $_ -Server $Server} $r | ForEach-Object {New-ADGroupMember -Identity $ret -Member $_ -Server $Server} } else { - $ret = New-ADGroup -Path $Projects -Name $ProjectName -GroupCategory Security -GroupScope Global $acl = . .\AddProjectACL.ps1 -ProjectName $ProjectName $r = . .\AddProjectRoles.ps1 -ProjectName $ProjectName