{"id":2083,"date":"2017-04-14T19:17:29","date_gmt":"2017-04-14T19:17:29","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2083"},"modified":"2017-04-14T19:17:29","modified_gmt":"2017-04-14T19:17:29","slug":"delete-specific-email-from-o365-mailboxes-2","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2083","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><span style=\"color: #ff0000;\"><em>$Cred = Get-Credential\u00a0<\/em><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><em>$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri <a style=\"color: #ff0000;\" href=\"https:\/\/ps.outlook.com\/powershell\">https:\/\/ps.outlook.com\/powershell<\/a> -Credential $cred -Authentication Basic \u2013AllowRedirection\u00a0<\/em><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><em>Import-PSSession $s\u00a0<\/em><\/span><\/p>\n<ol>\n<li data-aria-posinset=\"1\" data-aria-level=\"2\">Type in your ada credentials with username of &lt;username&gt;@domain.com<br \/>\nType in your ada 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><em><span style=\"color: #ff0000;\">Get-DistributionGroupMember &#8220;LNSS Muncie Data Entry Firm&#8221; | Search-Mailbox -SearchQuery &#8216;Subject:&#8221;Backorder REquest: KAYLEE ANN HAAKE, L8K-KWT-9, Cancel&#8221;&#8216; -DeleteContent -Force:$True\u00a0<\/span><\/em><\/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\u00a0 $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.outlook.com\/powershell -Credential $cred -Authentication Basic \u2013AllowRedirection\u00a0 Import-PSSession $s\u00a0 Type in your ada credentials with username of &lt;username&gt;@domain.com Type in your ada credentials with username of domain\\&lt;username&gt; &nbsp; Run this command: you will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,60,59],"tags":[],"class_list":["post-2083","post","type-post","status-publish","format-standard","hentry","category-exchange-2010","category-office-365","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2083","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=2083"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions"}],"predecessor-version":[{"id":2084,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions\/2084"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}