If in doubt, check for most updated version here:  https://www.dropbox.com/s/g4vgdsi4iaqzbtf/How%20to%20Enable%20Mailbox%20Auditing.docx?dl=0



CONNECT TO EXCHANGE Via Power Shell from Helpdesk Desktop. If using a different PC see notes at the end of these instructions.


Open Power Shell as administrator

connect-exchangeonline

Use office365admin@mayfield.com


To check if Mailbox Auditing is currently enabled use:


Get-Mailbox -Identity username@mayfield.com | Format-List auditenabled

    

    result should be: AuditEnabled : True


To SET AuditEnabled to TRUE (it's best to False and then True)


Set-Mailbox -Identity username@mayfield.com -AuditEnabled $false

Set-Mailbox -Identity username@mayfield.com -AuditEnabled $true


Confirm Is Set with:


Get-Mailbox -Identity username@mayfield.com | Format-List auditenabled

    result should be: AuditEnabled : True


Send a couple emails as user and empty sent and deleted items. Give a couple hours and check auditing to confirm is working.


FIRST TIME SETUP on Desktop


install-module exchangeonlinemanagement

If it errors out, run: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

import-module exchangeonlinemanagement