removed error
This commit is contained in:
parent
6f82577c39
commit
5712ca72c8
@ -10,9 +10,9 @@ param (
|
||||
if($PSBoundParameters.ContainsKey('Name')){
|
||||
$Roles=$null
|
||||
if($PSBoundParameters.ContainsKey('Server')){
|
||||
$Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name
|
||||
$Roles = . .\GetRoles.ps1 -Server $Server -ProjectName $Name
|
||||
} else {
|
||||
$Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name
|
||||
$Roles = . .\GetRoles.ps1 -ProjectName $Name
|
||||
}
|
||||
return $Roles | Get-ADGroupMember | Get-Unique
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user