Office 365

How to add multiple domains to a white-list on Skype for Business Online (Office 365)

Download and install Skype for Business Online, Powershell Module:
https://www.microsoft.com/en-us/download/details.aspx?id=39366

Run each command one at a time.

Import-Module SkypeOnlineConnector
$userCredential = Get-Credential
$sfbSession = New-CsOnlineSession -Credential $userCredential
Import-PSSession $sfbSession

$a = New-CsEdgeDomainPattern -Domain "domainname.com"
$b = New-CsEdgeDomainPattern -Domain "domainname.com"
$c = New-CsEdgeDomainPattern -Domain "domainname.com"


$newAllowList = New-CsEdgeAllowList -AllowedDomain $a,$b,$c
Set-CsTenantFederationConfiguration -AllowedDomains $newAllowList
Remove-PSSession $sfbSession

No comments:

Post a Comment