Get-InvalidRgsAgents.ps1

On a recent window-shopping expedition through the event logs on a customer’s Front-End I stumbled across instances of warnings 31137 & 31138. These are generated when Lync realises that users belonging to RGS Agent Groups are no longer EV-enabled, or no longer exist. During the Active Directory update non-UC enabled agents were found. The following …

Continue reading ‘Get-InvalidRgsAgents.ps1’ »

Lync PowerShell Snippets

Here’s an ad-hoc post with a collection of snippets of PowerShell I often seem to find myself needing to refer to. There are some more good ones here from Paul Bloem, over the pond. How do I find (and/or count) the users homed to a given FE/pool? Get-CsUser | Where-Object {$_.RegistrarPool -match “<POOL FQDN>”} | …

Continue reading ‘Lync PowerShell Snippets’ »

MAdCaP.ps1 – A GUI for Lync Analog Devices & Common Area Phones

Creating and administering Analog Devices and Common Area Phones in Lync is sometimes a little tedious. I have a terrible record for forgetting to assign a PIN to Common Area Phones… Inspired by a customer (and to the horror of a purist peer) I’ve created a PowerShell script that provides a GUI for the administration …

Continue reading ‘MAdCaP.ps1 – A GUI for Lync Analog Devices & Common Area Phones’ »

Viewing Truncated PowerShell Output

Sometimes PowerShell truncates output, and if you don’t realise what’s going on, you’ll never get it to show. Where you’re expecting potentially lots more text, PowerShell replaces it with a single lousy ellipsis, cruelly taunting you. Column Width If it’s just a column width problem, the fix is simple enough: just pipe to out-string and add …

Continue reading ‘Viewing Truncated PowerShell Output’ »

Script to find Unused Numbers in Lync

Ståle Hansen has published a great PowerShell script that digs through the Lync CsUnassignedNumber list and mashes it against all of the possible uses of a number (including CsAnalogDevices, CommonAreaPhones, RGS, UMContacts and more) to report what numbers in a given number range are currently spare. It fills a yawning (and frustrating gap) in the …

Continue reading ‘Script to find Unused Numbers in Lync’ »

PowerShell Filter command fails

Sometimes what seems an obvious PowerShell filter request is rejected. The parameter you’re seeking is visible when you get-user (Exchange) or get-csUser (Lync), but you’re still rejected. The error message is the rather bleak and uninspiring: Invoke-Command : Cannot bind parameter ‘Filter’ to the target. Exception setting “Filter”: “”UMDialPlan” is not a recognized filterable property. …

Continue reading ‘PowerShell Filter command fails’ »