reversed eq
This commit is contained in:
parent
71ae6260f6
commit
96721a0435
@ -10,9 +10,9 @@ param (
|
|||||||
if($PSBoundParameters.ContainsKey('Name')){
|
if($PSBoundParameters.ContainsKey('Name')){
|
||||||
$Roles=$null
|
$Roles=$null
|
||||||
if($PSBoundParameters.ContainsKey('Server')){
|
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 {
|
} else {
|
||||||
$Roles = . .\GetRoles.ps1 | Where-Object Name -eq $Name
|
$Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name
|
||||||
}
|
}
|
||||||
return $Roles | Get-ADGroupMember | Get-Unique
|
return $Roles | Get-ADGroupMember | Get-Unique
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user