Hi Manu,
I have managed to bulk archive the team sites using the team's name.
Thanks for your prompt response and support.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Archiving teams with SDS at the end of academic year
Hi Manu,
I have managed to bulk archive the team sites using the team's name.
Thanks for your prompt response and support.
I think, the following article will help you out in Archiving teams with SDS
Thanks for providing more details on your requirement!
The Teams Admin Center itself doesn't support bulk archiving, so PowerShell is the recommended method for this.
I hope, you are comfortable to use a PS script to achieve your goal. Here are the steps to follow: Let's know for any clarifications on using the script
teams.csv) Connect-MicrosoftTeams cmdlet in PowerShell$TeamNames = Import-CSV -Path "C:\azure\teams.csv"
foreach ($TeamName in $TeamNames) {
$Name = $TeamName.TeamName
$GroupID = (Get-Team -DisplayName $Name).GroupId
Write-Host "Enabling archive for $Name" -ForegroundColor Yellow
Set-TeamArchivedState -GroupId $GroupID -Archived:$true | Out-Null
}
Write-Host "Archive enabled for teams in the CSV file" -ForegroundColor Green
Here are the steps that I executed in my test Teams infrastructure. I tried archiving the selected teams using the PS script
Final Output as below:
Hope this helps.
--please don't forget to upvote and Accept as answer if the reply is helpful--