May 3, 2013

TIP #1301: Lync PowerShell - Get-CsPool Cannot find “Pool”

Filed under: Skype for Business,Lync Server 2013/2010, PowerShell, Info/Tips — Desmond Lee @ 8:55 pm

To discover a list of available pools in the deployment of Lync Servers, simply execute the Get-CsPool cmdlet in the Lync Server Management Shell. Appending the fully qualified domain name to the positional parameter -Identity enables you to zoom into a particular pool, e.g.

Get-CsPool -Identity

This parameter does not support wildcards and will throw an error if you attempt a construct similar to this:

C:\Users\administrator> Get-CsPool lync*

Get-CsPool : Cannot find “Pool” “lync*” because it does not exist.
At line:1 char:1
+ Get-CsPool lync*
+ CategoryInfo : ResourceUnavailable: (lync*:String) [Get-CsPool, KeyNotFoundException + FullyQualifiedErrorId : MissingItem, Microsoft.Rtc.Management.Xds.GetPool Cmdlet

Instead, explicitly call out the -Filter parameter when using wildcards to specify the identity of a Lync pool or pools to match. Otherwise, the first syntax pointing to -Identity as the first positional parameter will be used by default i.e.

Get-CsPool -Filter lync*
#instead of just Get-CsPool lync*
#which in reality reads Get-CsPool -Identity lync*

This and more exciting news, tips and trick, etc. to join here.

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

No Comments »

No comments yet.

RSS feed for comments on this post. | TrackBack URI

Leave a comment

You must be logged in to post a comment.

Theme Designed by: Malone Car Hire Ireland