Shadow Mailbox Deletion
Shadow Mailbox Deletion
Shadow Mailbox Deletion
Exchange Online PowerShell
Connect-EXOPSSession -UserPrincipalName admin@contoso.com
1. Get-User jon@contoso.com | Select name,*Recipient*
2. Set-User jon@contoso.com -PermanentlyClearPreviousMailboxInfo
Connect to Exchange Online PowerShell
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
Remove-PSSession $Session