Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Fantasillion/f52752dbff66b5ab44f60591dba3ea04 to your computer and use it in GitHub Desktop.
Save Fantasillion/f52752dbff66b5ab44f60591dba3ea04 to your computer and use it in GitHub Desktop.
Office 365 Group hidden from Outlook because created in Teams
#Install and connect:
Install-Module ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ippssession -UserPrincipalName youremail@domain.com #replace youremail@domain.com with your own. Make sure you have access/permission/roles.
Connect-ExchangeOnline -UserPrincipalName youremail@domain.com #replace youremail@domain.com with your own. Make sure you have access/permission/roles.
#Find all:
Get-UnifiedGroup | Select DisplayName,@{Name="NameLength";Expression={$_.name.length}}, Alias, PrimarySmtpAddress, HiddenFromExchangeClientsEnabled
#Find specific:
Get-UnifiedGroup -identity "Mailbox name" | Select DisplayName,@{Name="NameLength";Expression={$_.name.length}}, Alias, PrimarySmtpAddress, HiddenFromExchangeClientsEnabled
#To unhide:
set-UnifiedGroup -identity "mailbox name" -HiddenFromExchangeClientsEnabled:$false
#Ask user to stop Outlook process and then start Outlook process to populate "Groups" with the now unhidden Group.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment