Forum Discussion
parveenprajapati
Feb 19, 2021Copper Contributor
Want to archive teams in bulk
I want to archive teams in bulk with the id. i am sharing my script. but it is not happening. I am sharing my script. $a = Import-Csv C:\Users\parveen.kumar\Desktop\a.csv foreach ($a in $data) ...
CoasterKaty
Feb 20, 2021MVP
parveenprajapati You could do something like:
Get-Team | Where {$_.DisplayName -like "*2020*" | Set-TeamArchivedState -Archived:$truealthough if you're using Teams for school classes I'd recommend looking at School Data Sync for next year as it handles the creation/update/archival of teams for you.
parveenprajapati
Feb 22, 2021Copper Contributor
CoasterKaty Thank you for your help. Its working now.