Any update?
I cannot make myself an owner of every Team just to change defaults!
edit:
As there is no better way I had to:
Get-Team | where-object {$_.DisplayName -like ("2023-*")} | Select-Object GroupId | Export-Csv c:\temp\GroupID.csv -NoTypeInformation
Import-CSV -Path c:\temp\GroupID.csv | ForEach {
Add-TeamUser -GroupId $_.id -User UPN -Role owner
}
Import-csv -path c:\temp\GroupID.csv | ForEach {
Update-MgEducationClassAssignmentDefault -EducationClassId $_.id -DueTime 09:00:00
}
Import-CSV -Path C:\temp\GroupID.csv | ForEach {
Remove-TeamUser -GroupId $_.id -User UPN
}