Avatar of Excel
ExcelFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

Shared Mailboxes Activity Report

We're looking to audit our shared mailboxes and see a date in which they were last accessed. We have 77 shared mailboxes but I can't find a way to do this via Office 365 or via PowerShell. Am I missing a simple way to do this or is there no way to do this yet?

Ideally, we'd like the report to show when the shared mailbox was last accessed/used so we can determine if we can close them or not.

Thanks.
PowershellMicrosoft OfficeMicrosoft 365

Avatar of undefined
Last Comment
Vasil Michev (MVP)
Avatar of Saif Shaikh
Saif Shaikh
Flag of India image

If you are using o365 then you can follow below instructions to configure reports as per your needs.

https://docs.microsoft.com/en-us/office365/admin/activity-reports/activity-reports?view=o365-worldwide

Also How to detect who was accessing shared mailbox.
Open PowerShell → Run the following command to connect with Exchange Online instance and enter your credentials in the pop-up window:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

To enable mailbox auditing run:
 For a single mailbox:

Set-Mailbox –Identity "TestUser" -AuditEnabled $true

 For all mailboxes:

$UserMailboxes = Get-mailbox -Filter {(RecipientTypeDetails -eq 'UserMailbox')} $UserMailboxes | ForEach {Set-Mailbox $_.Identity -AuditEnabled $true}

To check what mailboxes have auditing enabled run:
Get-Mailbox | FL Name,AuditEnabled

Open Exchange Administration Center → Navigate to "Compliance Management" Auditing.
Click "Run a non-owner mailbox access report". You will get the report on non-owner access to all mailboxes with enabled auditing over the past two weeks.
To view non-owner access to a specific mailbox Click on a mailbox to view all non-owner access events with the details.
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft Office
Microsoft Office

Microsoft Office is an integrated suite of applications that includes Outlook, Word, Excel, Access, PowerPoint, Visio and InfoPath, along with a number of tools to assist in making the individual components work together. Coding within and between the projects is done in Visual Basic for Applications, known as VBA.

79K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo