reversed eq

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-15 22:15:38 +02:00
parent 71ae6260f6
commit 96721a0435

View File

@ -10,9 +10,9 @@ param (
if($PSBoundParameters.ContainsKey('Name')){
$Roles=$null
if($PSBoundParameters.ContainsKey('Server')){
$Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -eq $Name
$Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name
} else {
$Roles = . .\GetRoles.ps1 | Where-Object Name -eq $Name
$Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name
}
return $Roles | Get-ADGroupMember | Get-Unique
}