Thursday, March 22, 2018

How to run power shell commands against Teams


Start Windows Power shell as Administrator



Enter Y for Yes and then enter

If you get "Untrusted repository", click A for Yes to all



Type Connect-MicrosoftTeams



Enter your admin account for O365 portal

Once connected to the Microsoft Teams for your Tenant, you will see this windows



You can then start to run cmdlets or scripts against Teams.
Run Get-Command - Module MicrsoftTeams to see available commands. This list will almost monthly increase.








The GroupID is important to notice if you want to assign policies etc to the team.



In the Teams Client we can see that the team has been created



This is an example how to add picture on the new Team