Teams - Creating/Editing/Deleting Classes

Clinton Redfern 1 Reputation point
2020-11-25T03:08:53.977+00:00

Hi All,

Hoping to get some advice on this.

Just some background info, I work in a school and we have over 1700 teams created within Microsoft Teams, some are set up as classes and some are just normal team groups.

What we are having issues with is the really poor or sloppy Admin Management console that Microsoft offers for Teams.

What I am wanting to do is seamlessly remove/delete over 400 classes (all have the same naming convention), and rename 600 odd classes to a new naming convention IE for example 19.20.year7.maths to Maths.Year7.19-20. at the moment we have to manually go through every team and change these manually one-by-one and delete the old classes. The problem is when you change the name for a class or team and click save the list then refreshes and goes back to the top of the list so you have to scroll all the way down to where you were and rename the next class and then repeat the process. THIS TAKES HOURS........!!!!!

Is there no script or software which can help manage classes using a CSV file or something along those lines? Otherwise, this is going to take me ages every year when I have to delete old classes in teams and Manually create new classes in teams.

It seems like Microsoft is really letting down schools if this is not easily done.

Thanks for any advice in advance.

:)

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,164 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,390 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,056 Reputation points Microsoft Vendor
    2020-11-25T07:34:54.677+00:00

    @Clinton Redfern ,

    About creating teams in bulk, you could refer to the following steps

    1. Creating bulkTeams.csv file with necessary fields about teams and channels
    2. Import bulkTeams.csv file data to create teams: $data = Import-Csv C:\Scripts\bulkTeams.csv
      foreach ($d in $data) {
      $GroupID = (New-Team -DisplayName $d.TeamDisplayName -Description $d.TeamDescription`
      -MailNickName $d.MailNickName -Visibility $d.TeamVisibility -Owner $d.Owner).GroupID
      New-TeamChannel -GroupId $GroupID -DisplayName $d.ChannelDisplayName -Description $d.ChannelDescription
      }

    About deleting teams in bulk, you could refer to the following steps

    1. Get teams GroupID and export to delete.csv file: Get-team | export-csv delete.csv
    2. Filter out the teams which you want to delete by Display Name in the delete.csv file
    3. Delete teams: Import-csv delete.csv | foreach{remove-Team -groupid $_.groupid }

    About editing teams in bulk, we can do some modifications in the deleting teams scripts

    1. Get teams GroupID and export to edit.csv file: Get-team | export-csv edit.csv
    2. Filter out the teams which you want to edit by Display Name in the edit.csv file
    3. Edit teams: Import-csv edit.csv | foreach{set-Team -GroupId $_.groupid -DisplayName $_.displayname}

    Besides, I have created a feedback about the management of Microsoft Teams by this link: https://microsoftteams.uservoice.com/forums/555103-public/suggestions/42044080-we-need-more-convenient-management-of-microsoft-te. You could vote for it.

    Microsoft will always focus on customer’s feedback and experience. Some new features would be added to the services based on customers' feedback in the future, and your good ideas will be very helpful for them to improve the service.

    Your time, understanding and cooperation will be highly appreciated.

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.