added check for project name being set

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-14 14:47:01 +02:00
parent 2ff38880cb
commit 8da7314da8

View File

@ -12,7 +12,7 @@ $ret
$acl $acl
$r $r
if($PSBoundParameters.ContainsKey($ProjectName)){ if($PSBoundParameters.ContainsKey("ProjectName")){
if($PSBoundParameters.ContainsKey("Server")){ if($PSBoundParameters.ContainsKey("Server")){
$ret = New-ADGroup -Path $Projects -Server $Server -Name $ProjectName -GroupCategory Security -GroupScope Global $ret = New-ADGroup -Path $Projects -Server $Server -Name $ProjectName -GroupCategory Security -GroupScope Global
$acl = . .\AddProjectACL.ps1 -ProjectName $ProjectName -Server $Server $acl = . .\AddProjectACL.ps1 -ProjectName $ProjectName -Server $Server