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:
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 email@example.com -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl $url
Get-UcTeamsForest is available UC Lobby Teams PowerShell module since version 0.1.2 .