added check for project name being set

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-14 14:46:26 +02:00
parent 81dba8289b
commit 2ff38880cb

View File

@ -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