PowerShell scripts for Microsoft 365

Your download is in progress and it will be complete in just a few seconds! If you face any issues, download manually here

Thank you for registering with ManageEngine.

We will send the download link to the registered email ID shortly.

Manage and Secure Microsoft 365 with M365 Manager Plus

  •  
  •  
  •  
  • By clicking 'Download 30-day free trial' you agree to processing of personal data according to the Privacy Policy.

How to archive teams using PowerShell

The Set-TeamArchivedState cmdlet helps you to archive a team and effectively freeze all team activities. Team admins and owners will, however, be able to add or remove members and also update their roles. You must unarchive an archived team to resume all the other user activities.

Syntax:

Set-TeamArchivedState -GroupId <String> -Archived <Boolean> [-SetSpoSiteReadOnlyForMembers <Boolean>] [<CommonParameters>]

Eg. PS C:\> Set-TeamArchivedState -GroupId 134r77j6-ol98-6t77-w145-90987i9l567y -Archived:$true

This cmdlet archives the group with the mentioned group ID.

Though PowerShell scripts generally help to get the work done, they can be complex, time-consuming, and error-prone. Looking for small errors like a misplaced colon or hyphen can be challenging. M365 Manager Plus helps simplify Microsoft Teams tasks by providing insightful reports and handy management options that don't require you to type a single PowerShell script.

How can M365 Manager Plus help?

The user-friendly interface of M365 Manager Plus enables you to archive teams in bulk using CSV files. You can get the job done in a matter of seconds without having to type long and complex group IDs or codes every time.

Steps to manage Teams archiving:

  • Choose the Management & Reporting section.
  • Click the Management tab.
  • Navigate to Microsoft Teams → Teams Management → Team Tasks.
  • Choose the Archive Team option.
  • Select a suitable Microsoft 365 Tenant from the drop-down.
  • You can then either enter the name of specific teams separated by commas or import a CSV file containing the team details.
  • Once the teams are found and selected or imported successfully, click on Apply for the changes to be implemented.
Teams archiving with powershell

Learn more about how M365 Manager Plus simplifies complex PowerShell tasks.

Why businesses choose M365 Manager Plus?

What our customers say

  • We can now effectively reconcile which licenses we are using in the organization and assign the cost to the business unit. We were also able to identify a number of license changes that could be put in place that reduced our total Microsoft 365 spending.

    Timothy Ransom
    Group IT/IS manager at The Eclipse Group, United Arab Emirates

  • M365 Manager Plus is valuable to our future business and, most importantly, it allows me to keep improving the level of service we provide.

    IT infrastructure manager
    Sunstar Suisse S.A.

  • Our firm purchased ManageEngine M365 Manager Plus to help us protect our business from email-borne cyberthreats. We are absolutely satisfied with the features and ease of use. It has surpassed our expectations.

    Insurance agent
    Security and risk management Gartner review

A holistic Microsoft 365 administration solution

One-stop solution for all your
Microsoft 365 administration needs!

Download now