best business builder

Delete specific email from O365 mailboxes

1.  Connect to Exchange On-line

  1. From the PowerShell console on an Exchange 2010 server:

$Cred = Get-Credential 

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection 

Import-PSSession $s 

  1. Type in your ada credentials with username of <username>@domain.com
    Type in your ada credentials with username of domain\<username>

 

  1. Run this command:

you will need the distribution group name and subject of email

Get-DistributionGroupMember “LNSS Muncie Data Entry Firm” | Search-Mailbox -SearchQuery ‘Subject:”Backorder REquest: KAYLEE ANN HAAKE, L8K-KWT-9, Cancel”‘ -DeleteContent -Force:$True 


Got a project that needs expert IT support?

From Linux and Microsoft Server to VMware, networking, and more, our team at CR Tech is here to help.

Get personalized support today and ensure your systems are running at peak performance or make sure that your project turns out to be a successful one!

CONTACT US NOW
best vpn deal