
So if you wanted to remove from the list, you would issue the command: $x.AllowedDomain.RemoveAt(2) Once you’ve determined which domain you want to remove, you issue the command $x.AllowedDomain.RemoveAt(Y), where Y is the number of the domain you want to remove. The domain would be number 1, and would be 0. For example, if you had the following list output when you issued the variable as a command: You do this by issuing the variable as a command and then counting the number of lines until the domain that you want to remove, with the first line as zero. You then need to determine the number of the domain that you want to remove. First you need to place the current list of allowed domains in a variable: $x = (Get-CsTenantFederationConfiguration).AllowedDomains To remove a domain from the allowed list, you need to use a set of commands. Set-CsTenantFederationConfiguration -AllowedDomains $newAllowList $newAllowList = New-CsEdgeAllowList -AllowedDomain $x,$y
#Skype for business admin center code
The following Windows PowerShell code allows users to only communicate with users in the and domains. Get-CsTenantFederationConfiguration You can use this cmdlet to view information about the allowed domains and the blocked domains. New-CsEdgeDomainPattern You use this cmdlet to modify the list of allowed or blocked domains because string values cannot be passed directly to the cmdlets used to manage the list. This cmdlet must be used in conjunction with the New-CsEdgeDomainPattern and Set-CsTenantFederationConfiguration cmdlets. New-CsEdgeAllowList Use this cmdlet to configure the domains with which Skype for Business Online users can communicate. New-CsEdgeAllowAllKnownDomains This cmdlet allows Skype for Business Online users to communicate with any domain, except those on the block list. You can also use a set of Skype for Business Online specific Windows PowerShell cmdlets to manage external communication settings. FIGURE 4-55 Skype for Business admin center
