Teams Archiving PowerShell Commands
We would like functionality in PowerShell to check the archive status of a Team and also to be able to set the status.
For example as we’d like to programmatically change a Team to archived if it hasn’t been accessed in 6 months. It should also change the SharePoint site to read only for the members as it does in the Teams UI.
Matthew Verrier commented
Is this not already implemented?
get-Team -GroupId |select Archived
shows the archive state of a teams and
Set-teamarchivedstate -GroupId -Archived:$false/$true sets the state of the team.
Michael Janke commented
Any news to this?
Aldo de Beunje commented
Yes please get this working. I have a lot of Teams to archive every school year.
Grant Taylor commented
This would be wonderful, I have 100+ classes/groups a year I have to archive, one by one...
Mergim Esati commented
I would love to see an update to the existing "Set-Team" command. Please add an argument "-Archived" with the options "$true" or "$false" so we can programmatically archive and un-archive Teams via PowerShell. This is mandatory to us as we archive every year ~50 teams and add 50 new ones.
17th of June, 2019.
The "get-Team" -Archived property is existing, so it's OK... but The "set-Team" -Archived property is still not existing.
Is this moving forward ?