Forum Discussion
SomorjaiKarola
Jul 28, 2021Copper Contributor
Bulk restore from archive
Hello Everyone, I have a question ! 🙂
How can I restore archived teams groups in bulk? (I would make them active :D)
I have a lot of archived groups, and I would do them to active - I hope you undertstand me.
I can solve the problem if I have one group - (in AD, and by powershell), but I have lots of groups 🙂
Thank you for your answers! 🙂
karola
- PowerShell
Get Team
https://docs.microsoft.com/en-us/powershell/module/teams/get-team?view=teams-ps
Set-teamarchivedstate
https://docs.microsoft.com/en-us/powershell/module/teams/set-teamarchivedstate?view=teams-ps
You should be able to create scripts based off of these of these cmdlets. The Get-Team command should be able to get archived teams and show their Group ID which can be used for the Set command to bulk restore them.
Hope that helps and answers your question
Best, Chris
- PowerShell
Get Team
https://docs.microsoft.com/en-us/powershell/module/teams/get-team?view=teams-ps
Set-teamarchivedstate
https://docs.microsoft.com/en-us/powershell/module/teams/set-teamarchivedstate?view=teams-ps
You should be able to create scripts based off of these of these cmdlets. The Get-Team command should be able to get archived teams and show their Group ID which can be used for the Set command to bulk restore them.
Hope that helps and answers your question
Best, Chris