Topic Last Modified: 2013-08-13

Removing a domain from the allowed domains list involves a series of steps. First, you must use a command similar to the following, in order to retrieve a collection of all the domains currently on the list:

Copy Code
$x = (Get-CsTenantFederationConfiguration).AllowedDomains

Next, run this command to review those domains:

Copy Code
$x

Take note of the numeric position of the domain to be removed. If the domain is the first domain in the list, then it has an index value of 0. If the domain is the second domain in the list, it has an index value of 1, and so on.

After you know the index number, use a command like the following to remove the specified domain, making sure to use the correct index number. This command removes the first domain in the list (index number 0):

Copy Code
$x.AllowedDomain.RemoveAt(0)

Finally, call the Set-CsTenantFederationConfiguration cmdlet to write your changes to Lync Online:

Copy Code
Set-CsTenantFederationConfiguration -AllowedDomains $x

See Also