Paul Vaillant

Update-LyncFederatedDomains

Updates allowed and blocked federated domains based on Edge event log entries.

Syntax

Update-LyncFederatedDomains.ps1 [-FilePath <String>] [-EdgeServer <String[]>] [-Credential <PSCredential>] [-InputObject <Object>] [<CommonParameters>]Update-LyncFederatedDomains.ps1 [-GUI] [-EdgeServer <String[]>] [-Credential <PSCredential>] [-InputObject <Object>] [<CommonParameters>]

Parameters

NameDescriptionRequired?Pipeline Input?Default Value
GUIIf specified, display domains extracted from event log using a GUIfalsefalseFalse
FilePathFile path for resulting script with allowed and blocked domain statementsfalsefalse
EdgeServerFQDN of edge server to connect tofalsefalse
CredentialCredentials to use to connect to edge serverfalsefalse
InputObjectfalsetrue (ByValue)

Input Type

Exactly the same as the outputs

Return Values

An array of PSCustomObjects with the following properties:
Domain, ProxyFqdn, RateLimited, Comment, Action, EdgeServer

Notes

Version 1.0.0 (2015-03-12)
Written by Paul Vaillant

Examples

EXAMPLE 1

Update-LyncFederatedDomains.ps1 -GUI

Connect to either the localhost (if it is an edge server) or to the auto-detected edge server (using Get-CsPool)

EXAMPLE 2

Update-LyncFederatedDomains.ps1 -EdgeServer "edge.domain.local" -Credential $(Get-Credential)

Connect to the specified edge server using the specified credentials

EXAMPLE 3

Update-LyncFederatedDomains.ps1 | where { $_.Domain -match acme } | Update-LyncFederatedDomains.ps1 -FilePath .\path\to\update-federation.ps1

Parse event log entries for missing federation domains, find the ones that match ‘acme’ and create an update script.