Get-UcTeamsForest

Sometimes, we get asked which forest customers should use when moving a user to Microsoft Teams in the Move-CsUser.

A quick way to check the forest is to open the following link in a browser:

https://webdir.online.lync.com/AutoDiscover/AutoDiscoverservice.svc/root?originalDomain=uclobby.com

In the response we can look at the redirect URL and look at the forest, in this case it is 1E.

To make it easier, we can build a PowerShell script/cmdlet to extract the forest from the previous response.

The Get-UcTeamsForest PowerShell cmdlet only needs the domain parameter:

Here is a use scenario from Move users from on-premises to Teams:

$cred=Get-Credential
$url = (Get-UcTeamsForest -Domain contoso.com).MigrationURL
Move-CsUser -Identity username@contoso.com -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl $url

Get-UcTeamsForest is available UC Lobby Teams PowerShell module since version 0.1.2 .

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.