Forum Discussion
How do i change Properties of teams using powershell?
- Jul 17, 2020
Set-UnifiedGroup is part of the Exchange Module.
https://docs.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps
You can install this by running:
Install-Module -Name ExchangeOnlineManagementConnect by running:
Connect-ExchangeOnlineBe 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
You can try to run
Get-Module -ListAvailableAnd check if you see the MicrosoftTeams module.
To install the module with
Install-Module MicrosoftTeamsmake sure you are running the PowerShell as Administrator.
After installing the module
Import-Module MicrosoftTeams will make the command available to you.
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.
- ShellBlazerJul 17, 2020Brass Contributor
Best check your current execution policy.
Get-ExecutionPolicyI'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- wo_knJul 17, 2020Brass Contributor
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.
- ShellBlazerJul 17, 2020Brass Contributor
Set-UnifiedGroup is part of the Exchange Module.
https://docs.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps
You can install this by running:
Install-Module -Name ExchangeOnlineManagementConnect by running:
Connect-ExchangeOnlineBe 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