TIP #1303: Lync PowerShell - Get-CsUser “RegistrarPool” Front-End Pool (Part 2A)

You have a number of servers in different Lync Server 2013/2010 Enterprise Front-End Server Pools. The task is to query users assigned to the respective pools and you came up with a short script not unlike the following sample:

$rpool = “pool01″, “pool02″, “pool03″

$rpool | % {
$v = $_
Get-CsUser -Filter { RegistrarPool -eq $v }
}

Pretty straightforward ain’t it, yet you are confronted with one or more errors as listed. How could you provide a fix or workaround? Get into the game and let us know your thoughts!

Get-CsUser: Cannot bind parameter “Filter” to the target. Exception setting “Filter”:
“Policy resolution is implemented for property ‘RegistrarPool’”
At line: 3 char: 23
+ Get-CsUser -Filter <<<< { RegisterPool -eq $v }
+ CategoryInfo : WriteError: (:) [Get-CsUser], ParameterBindingsException
+ FulllyQualifiedErrorId: ParameterBindingFailed, Microsoft.Rtc.Management.AD.Cmdlets.GetOCSUserCmdlet

#or

Get-CsUser: Cannot bind parameter “Filter” to the target. Exception setting “Filter”:
“Policy resolution is implemented for property ‘RegistrarPool’”
At line: 3 char: 23
+ CategoryInfo : NotSpecified: (:) [Write-Error],WriteErrorException
+ FullyQualifedErrorId: Microsoft.PowerShell.Commands.WriteErrorException

Technorati tags: PowerShell, Microsoft Lync Server/Client /Lync Phone Edition / Lync Mobile

No Comments »

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.