Paul Vaillant

Update-LyncUnassignedNumbers

Keeps unassigned number entries current with all numbers available on the SIP Trunk

Syntax

Update-LyncUnassignedNumbers.ps1 [-SipPilotNumber] <Int64> [[-Credential] <PSCredential>] [-IncludeNumberTranslations] [-Announcement] <Object> [-Force] [<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
AnnouncementThe announcement to use for any new unassigned number entries that are createdtruefalse
ForceRemoves unused unassigned number entriesfalsefalseFalse

Notes

Version 1.0.0 (2015-04-10)
Written by Paul Vaillant

Examples

EXAMPLE 1

Update-LyncUnassignedNumbers.ps1 -SipPilotNumber 7005551212 -Announcement "number-unassigned"

This will prompt for credentials for the SIP trunk, connect and create any missing unassigned number entries using the
announcement “number-unassigned”.

EXAMPLE 2

Update-LyncUnassignedNumbers.ps1 -SipPilotNumber 7005551212 -Announcement $(Get-CsAnnouncement -Identity "number-unassigned")

Same as above but uses the announcement object instead of looking up the announcement.