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:

Get-CsTrustedApplicationEndpoint

Show information about one endpoint:

Get-CsTrustedApplicationEndpoint -Identity sipThe Session Initiation Protocol (SIP) is a protocol to make multimedia communication (audio, video and other data communication) possible and it is also used for Voice over IP (VoIP). SIP has similarities with other Internet protocols such as HTTP and SMTP.:<endpointname>@domain.com

Give detailed information about the endpoint:

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

Generate a list of Trusted Applications and their used ports (useful when creating an extra UCCUCC stands for Unified Contact Center and consists of a queue that can be handled by Agents Each Contact Center has its own settings, interactive voice response questions and Agent with specific skills. Agents can be member of, or sign up to, one or more Contact Centers.):

Get-CsTrustedApplication | Select-Object ApplicationId,Port

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

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

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

Look for an Trusted Application on a particular port:

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

 

Editing

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

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

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

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

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

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

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

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

Disable Endpoint for federationFederation makes it possible to communicate with customers, suppliers, partners and others, via Lync Server 2010 and Lync Server 2013, which are not in the same Lync environment.:

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

To set the UCC Policy as a conferencing policy:

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