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
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 |
Announcement | The announcement to use for any new unassigned number entries that are created | true | false | |
Force | Removes unused unassigned number entries | false | false | False |
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.