Additional features, settings, or issues not covered by specific Microsoft Teams categories
My 2 cents, your post help me ;)
######################################################################
Please install the next modules :
Install-Module MicrosoftTeams -Force -Verbose
ExOnline module from ECP
######################################################################
To Execute:
PS C:> Connect-EXOPSSession -UserPrincipalName *** Email address is removed for privacy ***
PS C:> Connect-MicrosoftTeams
######################################################################
$GroupsAvailable = $null
$Groups4Teams = $null
$Group4Teams = $null
$GroupID = $null
Select all the groups available for Teams
$GroupsAvailable = Get-UnifiedGroup | select DisplayName,ExternalDirectoryObjectId
Select specific groups to Teams by DisplayName
$Groups4Teams = $GroupsAvailable | Where {$_.DisplayName -like "TST-*"}
foreach ($Group4Teams in $Groups4Teams) {
echo $Group4Teams.DisplayName #Check
# DisplayName for Teams, by default take the name of the group
$TeamName = "MRE - " + $Group4Teams.DisplayName
#Group ID to var
$GroupID = $Group4Teams.ExternalDirectoryObjectId
#New Team command to create
New-Team -Group $GroupID
#Set Team DisplayName
Set-Team -Group $GroupID -DisplayName $TeamName
}
@ProfKaz, Thank you for sharing additional information on this. I really appreciate your efforts.
-Shrikant Suravase