Office 365 Groups activity one-liners.



Here are some one-liners to get various Office 365 Groups reporting/statistics.
You can for example see last activity date on SharePoint, Inbox and Teams.

Remember to log in to Exchange Online and SharePoint Online in the PowerShell session before running these one-liners.


#Check Office 365 mailbox activity, all mailbox activity are stored in the inbox
Get-MailboxFolderStatistics -Identity IT -IncludeOldestAndNewestItems -FolderScope Inbox

#Check teams activity, all channel chat will be stored in the ConversationHistory
Get-MailboxFolderStatistics -Identity IT -IncludeOldestAndNewestItems -FolderScope ConversationHistory

#Example of group not enabled for Teams
Get-MailboxFolderStatistics -Identity "Innovation Corner" -IncludeOldestAndNewestItems -FolderScope ConversationHistory
Get-MailboxFolderStatistics -Identity "Innovation Corner" -IncludeOldestAndNewestItems -FolderScope Inbox


#Check SharePoint activity, see if there are SharePoint site created and when last activity
(Get-SPOSite -Identity ((Get-UnifiedGroup IT | Select-Object -Property *).SharePointSiteUrl)).LastContentModifiedDate | Get-Date -Format yyyy.MM.dd

#Check if ownerless
Get-UnifiedGroupLinks IT -LinkType owner




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s