On Premises

Useful (Skype for Business) Powershell command's

Introduction

Below a list of different PowerShell commands useful for managing Anywhere365 endpoints.

Searching

See which Trusted Applications there are in the pool:

Copy
PowerShell
Get-CsTrustedApplicationEndpoint

Show information about one endpoint:

Copy
PowerShell
Get-CsTrustedApplicationEndpoint -Identity sip:<endpointname>@domain.com

Give detailed information about the endpoint:

Copy
PowerShell
Get-CsTrustedApplicationEndpoint -Identity sip:<name>@domain.com | select *

Generate a list of Trusted Applications and their used ports (useful when creating an extra UCC A Unified Contact Center, or UCC, is a queue of interactions (voice, email, IM, etc.) that are handled by Agents. Each UCC has its own settings, IVR menus and Agents. Agents can belong to one or several UCCs and can have multiple skills (competencies). A UCC can be visualized as a contact center “micro service”. Customers can utilize one UCC (e.g. a global helpdesk), a few UCC’s (e.g. for each department or regional office) or hundreds of UCC’s (e.g. for each bed at a hospital). They are interconnected and can all be managed from one central location.):

Copy
PowerShell
Get-CsTrustedApplication | Select-Object ApplicationId,Port

Search for one endpoint, using a match command for the LineURI:

Copy
PowerShell
Get-CsTrustedApplicationEndpoint |? {$_.LineURI -match "<partofthelineURI>"}

Search for one endpoint, using a match command for the SipAddress:

Copy
PowerShell
Get-CsTrustedApplicationEndpoint |? {$_.SipAddress -match "<partofthename>"}

Look for an Trusted Application on a particular port:

Copy
PowerShell
Get-CsTrustedApplication |? {$_.port -match "<portnumber>"}

Editing

To set a LineURI for the UCC (or other endpoint):

Copy
PowerShell
Set-CsTrustedApplicationEndpoint -Identity sip:<name>@domain.com -LineURI "tel:+<lineURI>"

Delete the number for the UCC (or other endpoint):

Copy
PowerShell
Set-CsTrustedApplicationEndpoint -Identity sip:<name>@domain.com -LineURI ""

To set a Displayname for the UCC (or other endpoint):

Copy
PowerShell
Set-CsTrustedApplicationEndpoint -Identity sip:<name>@domain.com -Displayname "UCC"

Delete the Displayname for the UCC (or other endpoint):

Copy
PowerShell
Set-CsTrustedApplicationEndpoint -Identity sip:<name>@domain.com -Displayname ""

Disable Endpoint for federation When using Anywhere365 in combination with Federation you can add agents working with a Skype for Business or Teams account to your UCC.:

Copy
PowerShell
Set-CsTrustedApplicationEndpoint -Identity sip:<name>@domain.com -EnabledForFederation 0

To set the UCC Policy as a conferencing policy:

Copy
PowerShell
Grant-CsConferencingPolicy -identity sip:<name>@domain.com -PolicyName "UCC Policy"