Fail to search all the new teams’ in my outlook

We got a help desk ticket yesterday and one of our teacher ask help from us that he fail to search all the new Teams she create this school year when she want to send email to this Teams. Noting show up when she searching from the “to” field. 图片包含 屏幕截图

已生成极高可信度的说明

I create a test team and try it just now. It is true that all the new teams we create this school year are fail to find on “to” field but all the old teams can still search with this way. 图片包含 屏幕截图

已生成极高可信度的说明

图片包含 屏幕截图

已生成极高可信度的说明

I open a ticket in MS and finally get confirm with them. Well, there is a new policy release in March and all the new Teams will be hidden from outlook by default and we have to use the powershell to unhide it again one by one.

图片包含 屏幕截图

已生成极高可信度的说明

Let’s try it and see how it works. Open the powershell as the administrator.

Type the following command and choose “A”.

Set-ExecutionPolicy RemoteSigned

图片包含 屏幕截图

已生成极高可信度的说明

Login with your Admin credentials with the following command:

$UserCredential = Get-Credential

图片包含 屏幕截图

已生成极高可信度的说明

Type the following command:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

图片包含 屏幕截图

已生成极高可信度的说明

Type the following command:

Import-PSSession $Session -DisableNameChecking 图片包含 屏幕截图

已生成极高可信度的说明

图片包含 屏幕截图

已生成极高可信度的说明

Run the following command to check your state for your teams and you can find that the setting “hiddenFromAddressListsEnable” is set the true and this is the reason why we fail to search teams.

Notes: Some special character and even space won’t identify from the command so you need to manually delete it if you have.

Get-UnifiedGroup -identity 20190919-Test | Ft Name,Alias,HiddenFrom*

图片包含 屏幕截图

已生成极高可信度的说明

Run the following command again to change the state for your teams.

Set-UnifiedGroup -identity 20190919-Test -HiddenFromExchangeClientsEnabled:$false

图片包含 屏幕截图

已生成极高可信度的说明

And you will see the Teams state has change to “False” now.

图片包含 屏幕截图

已生成极高可信度的说明

And you can the teams again from “to” filed and also find the teams on groups list on the left.

图片包含 屏幕截图

已生成极高可信度的说明

Well, this is the method to solve the problem. I guess the reason why MS change the default policy in March is they want to force every use the message feature from Teams instead to send an email. Email is more like official tool to use but IM is much easier for chat message. So this article is just fit for some user who still prefer using email to announce everything.