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
Name | Description | Required? | Pipeline Input? | Default Value |
---|---|---|---|---|
SipPilotNumber | 10 digit SIP Trunk pilot number | true | false | 0 |
Credential | PSCredential object (like returned from Get-Credential) for the SipPilotNumber | false | false | $(Get-Credential) |
IncludeNumberTranslations | Include number translations in the report. This will significantly slow down the report. | false | false | False |
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.