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
Name | Description | Required? | Pipeline Input? | Default Value |
---|---|---|---|---|
GUI | If specified, display domains extracted from event log using a GUI | false | false | False |
FilePath | File path for resulting script with allowed and blocked domain statements | false | false | |
EdgeServer | FQDN of edge server to connect to | false | false | |
Credential | Credentials to use to connect to edge server | false | false | |
InputObject | false | true (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.