Connect to Microsoft Teams PowerShell
Microsoft Teams PowerShell Modunle
You need install Microsoft Teams module only once. In the next time, run to connect to Microsoft Teams PowerShell.
##Install Modunle and Connect to Microsoft Teams
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name MicrosoftTeams;
Connect-MicrosoftTeams
Get-Team -Displayname 'finan'
GroupId DisplayName Visibility Archived MailNickName Description
------- ----------- ---------- -------- ------------ -----------
f427cfdc-832f-4119-ab73-7ae4fdc5a70b GL-Finance Private False GL-Finance GL-Finance
Import-Csv -Path "~\Desktop\users.csv" |
foreach {Add-TeamChannelUser -User $_.User -GroupId $_.GroupId -DisplayName $_.DisplayName}
5/5 - (1 vote)