added check for project name being set
This commit is contained in:
parent
2ff38880cb
commit
8da7314da8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user