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