Articles on: Scripts

Adding new Teams in Microsoft Teams using Powershell

Description:



This script is used to add new teams in Microsoft Teams using powershell and CSV file.

Required Columns in CSV file:

-DisplayName: Name of the Team

Script:



Install-Module -Name MicrosoftTeams

Connect-MicrosoftTeams

Import-Csv -Path "C:\Users\awais\OneDrive - Communication Square\Desktop\teams.csv" | foreach{New-Team -DisplayName $_.Team -Owner $_.Owner -Visibility $_.TeamVisibility}

Updated on: 31/01/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!