{"id":1990,"date":"2017-01-04T22:03:51","date_gmt":"2017-01-04T22:03:51","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1990"},"modified":"2017-01-04T22:03:51","modified_gmt":"2017-01-04T22:03:51","slug":"delete-specific-email-from-o365-mailboxes","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1990","title":{"rendered":"Delete specific email from O365 mailboxes"},"content":{"rendered":"<p>1.\u00a0 Connect to Exchange On-line<\/p>\n<ol>\n<li data-aria-posinset=\"1\" data-aria-level=\"2\">From the PowerShell console on an Exchange 2010 server:<\/li>\n<\/ol>\n<p>$Cred = Get-Credential<\/p>\n<p><b>$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri <\/b><a href=\"https:\/\/ps.outlook.com\/powershell\"><b>https:\/\/ps.outlook.com\/powershell<\/b><\/a><b> -Credential $cred -Authentication Basic \u2013AllowRedirection<\/b><\/p>\n<p><b>Import-PSSession $s<\/b><\/p>\n<ol>\n<li data-aria-posinset=\"1\" data-aria-level=\"2\">Type in your Domain Admin credentials with username of &lt;username&gt;@domain.com<\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\">Type in your Domain Admin credentials with username of domain\\&lt;username&gt;<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\">Run this command:<\/li>\n<\/ol>\n<p>you will need the distribution group name and subject of email<\/p>\n<p>&nbsp;<\/p>\n<p><b>Get-DistributionGroupMember &#8220;Muncie Data Entry Firm&#8221; | Search-Mailbox -SearchQuery &#8216;Subject:&#8221;Backorder Request: Cancel My Order&#8221;&#8216; -DeleteContent -Force:$True<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0 Connect to Exchange On-line 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 \u2013AllowRedirection Import-PSSession $s Type in your Domain Admin credentials with username of &lt;username&gt;@domain.com Type in your Domain Admin credentials with username of domain\\&lt;username&gt; &nbsp; Run this command: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,22,58,62,9,59],"tags":[],"class_list":["post-1990","post","type-post","status-publish","format-standard","hentry","category-exchange-2007","category-exchange-2010","category-exchange-2013","category-microsoft-exchange-server-2016","category-ms-office-07","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1990"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1990\/revisions"}],"predecessor-version":[{"id":1991,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1990\/revisions\/1991"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}