Lync PowerShell query syntax

This is one of those posts selfishly for my own use. Until I start to dream in Lync PowerShell commandlets I’ll be referring back to this one to get the syntax right.

Today I need to see how many users were homed to a particular Front-End server, and here’s the commandlet I used. It demonstrates filtering, piping and an output/display filter of sorts.

get-csuser -filter {RegistrarPool -eq "<FE FQDN>"} | Select-Object SamAccountName

And while we’re on the subject of piping and PowerShell, if you’ve not yet realised it, Lync can sometimes withhold information! If you "| fl" and the output wasn’t as interesting as you were hoping, you might find "| fl *" more fulfilling.

Leave a Reply

Your email address will not be published.

... and please just confirm for me that you're not a bot first: Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.