Paul Vaillant

Get-LyncNumbers

Get a list of all numbers in Lync and on a ThinkTel SIP trunk.

Syntax

Get-LyncNumbers.ps1 [-SipPilotNumber] <Int64> [-Credential <PSCredential>] [-IncludeNumberTranslations] [<CommonParameters>]

Parameters

NameDescriptionRequired?Pipeline Input?Default Value
SipPilotNumber10 digit SIP Trunk pilot numbertruefalse0
CredentialPSCredential object (like returned from Get-Credential) for the SipPilotNumberfalsefalse$(Get-Credential)
IncludeNumberTranslationsInclude number translations in the report. This will significantly slow down the report.falsefalseFalse

Return Values

For each number, either in Lync or on the SIP trunk, there’s a PSCustomObject with the following properties:
Type, LineURI, DisplayName, SipAddress, Identity, OnTrunk, DID, City

Notes

Version 1.0.0 (2015-03-12)
Written by Paul Vaillant

Examples

EXAMPLE 1

Get-LyncNumbers.ps1 -SipPilotNumber 7005551212 | Export-Csv .\lync-numbers.csv -NoTypeInformation

Get all the numbers in Lync and on ThinkTel SIP Trunk 7005551212 and write them to .\lync-numbers.csv. You will be
prompted for credentials for this SIP Trunk.