07-17-2020 01:32 AM
07-17-2020 01:32 AM
I was setting up a new team for my organisation and I wanted to add a calendar to the team by importing it as a site. For the calendar, i planned on using the Office 365 group calendar but the group didn't pop up in my outlook groups. Here (link to article) I found out that Office groups aren't visible by default when creating a team.
In the article they state that by changing "HiddenFromExchangeClientsEnabled" property, you can make the group appear as a office 365 group.
So i did some research on how to use Powershell. I installed the Microsoft Teams module (install-module -name MicrosoftTeams). I then tried to connect to ms teams (connect-microsoftteams) but this gave an error. The error said I need to run 'import-module MicrosoftTeams' but this command didn't give any result when entering.
I'm really new to PowerShell and don't know if this is the only and perfect solution to my problem. Anyone who could provide some help?
07-17-2020 01:45 AM
You can try to run
And check if you see the MicrosoftTeams module.
To install the module with
make sure you are running the PowerShell as Administrator.
After installing the module
will make the command available to you.
07-17-2020 02:23 AM
@ShellBlazer thank you for your (very fast) reply! :)
I've checked the list of modules:
I then tried to install the module by using the command provided by you. Funny enough, nothing happened...
I then tried the last command u provided, which also gave an error.
07-17-2020 03:00 AM
Best check your current execution policy.
I'm guessing it is set to restricted.
You can set the execution policy to be bypassed for your current PowerShell session by running:
Set-ExecutionPolicy Bypass -Scope Process
07-17-2020 05:44 AM
Thanks again for your reply!
It took some time for me to figure out but it finally worked.
I used the bypass you suggested and was able to use the connect command which led me to Office 365 login. I entered my credentials (I'm also an admin on the tenant).
After, I tried to use this command but didn't work unfortunatly:
Set-UnifiedGroup Team name -HiddenFromExchangeClientsEnabled:$false
I'm guessing there's something Powershell needs before I'll be able to use this command as Powershell doesn't recognize this command.
07-17-2020 06:03 AMSolution
Set-UnifiedGroup is part of the Exchange Module.
You can install this by running:
Install-Module -Name ExchangeOnlineManagement
Connect by running:
Be aware that for managing all aspects of Teams you might need 4 PowerShell modules.
1. AzureAD Module
2. Exchange online module
3. SharePoint module
4. Teams Module
07-17-2020 06:57 AM
Thanks a lot!
I've just done your last 2 commands and I was able to use the command
Set-UnifiedGroup Teamname -HiddenFromExchangeClientsEnabled:$false
Instead of the Teamname I used the group e-mail which I got out of the office admincenter.
I was able to enter the command and some moments later, the Office-group was visible in Outlook!
Thank you so much for taking time to answer this!