Forum Discussion
How do I find Teams created in last 7 days?
- Dec 03, 2019
You can do something like this:
Get-Team | select GroupId | % { Get-UnifiedGroup $_.GroupId | select DisplayName,WhenCreated } | sort WhenCreated
You'll need the Teams module and the ExO cmdlets for the above example to work.
You can do something like this:
Get-Team | select GroupId | % { Get-UnifiedGroup $_.GroupId | select DisplayName,WhenCreated } | sort WhenCreated
You'll need the Teams module and the ExO cmdlets for the above example to work.
- DazzaRDec 09, 2019Iron Contributor
VasilMichev ChrisHoardMVP - hi how to I remove the best answer and swap it for another? I found Leon's script did what I wanted - Teams created in last x days and doesn't require exchange role - https://www.leonarmston.com/2019/12/report-on-all-microsoft-teams-created-in-the-past-x-number-of-days/
Thanks, Darrel
- DazzaRDec 03, 2019Iron Contributor
VasilMichev So no exchange privilege no reporting on Teams based O365 Groups?
I have the exchange online module installed but no Get-UnifiedGroup command.
Connect-MicrosoftTeams
Get-Team | select GroupId | % { Get-UnifiedGroup $_.GroupId | select DisplayName,WhenCreated } | sort WhenCreated- VasilMichevDec 03, 2019MVP
The WhenCreated property is only available for the underlying group, not the Team object, so you need the Exchange permissions.