diff --git a/NewProject.ps1 b/NewProject.ps1 index 4d7de9d..d5c6cf0 100644 --- a/NewProject.ps1 +++ b/NewProject.ps1 @@ -12,7 +12,7 @@ $ret $acl $r -if($PSBoundParameters.ContainsKey($ProjectName)){ +if($PSBoundParameters.ContainsKey("ProjectName")){ if($PSBoundParameters.ContainsKey("Server")){ $ret = New-ADGroup -Path $Projects -Server $Server -Name $ProjectName -GroupCategory Security -GroupScope Global $acl = . .\AddProjectACL.ps1 -ProjectName $ProjectName -Server $Server