Nov 25 2020 08:52 AM
For Your Information: I have successfully created Class Teams using PowerShell and a CSV file. This is very handy because you can have a whole list of teams, channels, teachers and students in a CSV file making creating a large number of teams a snap.
I have attached a PowerShell module and a sample CSV file. The method is similar to what is found here Create teams in Microsoft Teams through CSV using PowerShell | JiJi Technologies, though there are a few small differences. I did not write the script, I found it online - but I cannot remember where. I made a few minor changes where the original script gave errors. In the spirit of sharing, I have attached it here.
Basically you need to have PowerShell 5.1 and install the current MicrosoftTeams PowerShell module (in PowerShell) using the command Install-Module -Name MicrosoftTeams -RequiredVersion 1.1.6 (that being the current version as of this writing). You need to run PowerShell as administrator.
Prepare your CSV file using the example I have attached. Import the PowerShell module I have attached and run the function New-TeamsFromCSV.
Watch your computer do all the hard work while you relax!
Apr 26 2021 07:13 AM
Note: this format requires you to give the path to the CSV file when you run the function from the PowerShell command line. E.g.
New-TeamsFromCSV c:\powershell\NewTeams.csv #substitute with your path and filename.
Aug 22 2021 08:57 AM
Hi,
thank you for your excellent script
Unforunatelly i am getting the following error
Aug 24 2021 12:15 PM
@Nikos_M Did you find any solution to the issue? I ran into the same error-message.
Seems like we have to add a Team-Visibility Column to the CSV file.
Sep 13 2021 08:53 AM