May 20 2020
04:48 AM
- last edited on
Feb 07 2023
08:08 PM
by
TechCommunityAP
May 20 2020
04:48 AM
- last edited on
Feb 07 2023
08:08 PM
by
TechCommunityAP
Hello,
I am trying to identify inactive Teams, I work for a reasonably sized company so we have hundreds of Teams setup. I have tried running a Usage Report but that only shows Teams that have had activity within the last 7, 28 or 90 days, if a Team has had no activity for over 90 days it does not seem to appear within the report.
So far the only way in which I have come up with identifying these inactive Teams is to compare the Usage report with the list of Teams manually which is less than ideal. Are there any alternatives that I am missing? I have read about running some kind of Powershell script but I am not that familiar with using Powershell.
Thanks for any suggestions.
May 20 2020 09:45 AM
You can do something like this: https://gallery.technet.microsoft.com/office/Check-for-obsolete-Office-c0020a42
Feb 23 2021 03:15 PM
@VasilMichev Dead link...anyone know another spot that this script lives?
Aug 06 2024 02:16 AM
Aug 07 2024 07:36 AM
Take this:
# Connect to Microsoft Teams
Connect-MicrosoftTeams
# Get all Teams
$teams = Get-Team
# Loop through each Team and check activity
foreach ($team in $teams) {
$activity = Get-TeamUserActivityUserDetail -TeamId $team.GroupId -StartDate (Get-Date).AddDays(-90)
if ($activity.Count -eq 0) {
Write-Output "Team $($team.DisplayName) is inactive."
}
}