< Back

New-TeamsFromCSV

Sat Jan 18, 2020 4:50 pm

NAME New-TeamsFromCSV



SYNOPSIS

Create MS Teams from CSV file.





SYNTAX

New-TeamsFromCSV [-Path] <String> [<CommonParameters>]





DESCRIPTION

Using this script, you can create Mirosoft Teams by importing details from csv file and this function use the

MicrosoftTeams PowerShell Module.





PARAMETERS

-Path <String>

Provide the CSV file path of the new Teams details.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-TeamsFromCSV -Path "C:\\temp\\TeamsDetails.CSV"



Create Teams from CSV file.



Sample CSV file format



"TeamsName","TeamType","ChannelName","Owners","Members"

"Testteam","Private","TestChannel;TestChanne2","admin@Tenantname.com","alexw@Tenantname.com"

"Testteam2","Private","TestChanne3","alexw@Tenantname.com","admin@Tenantname.com"

"Testteam3","Private","TestChanne2","alland@Tenantname.com","admin@Tenantname.com;AlexW@Tenantname.com;LeeG@Tenantn

ame.com"



Note: CSV Header: "TeamsName","TeamType","ChannelName","Owners","Members"

You need to use ";" for multiple ChannelName,Owners and Members in the CSV file











RELATED LINKS