{"id":2085,"date":"2017-04-14T19:18:55","date_gmt":"2017-04-14T19:18:55","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2085"},"modified":"2017-04-14T19:18:55","modified_gmt":"2017-04-14T19:18:55","slug":"delete-emails-from-specific-sender-in-one-users-mailbox-2","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2085","title":{"rendered":"Delete emails from specific sender in one users mailbox"},"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<p>&nbsp;<\/p>\n<ol>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\">Run this command in Powershell<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><b>Search-Mailbox -identity &#8220;User Mailbox&#8221; -SearchQuery &#8220;From:user@domain.com&#8221; -deletecontent<\/b>\u00a0<\/span><\/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 &nbsp; Run this command in Powershell &nbsp; Search-Mailbox -identity &#8220;User Mailbox&#8221; -SearchQuery &#8220;From:user@domain.com&#8221; -deletecontent\u00a0<\/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-2085","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\/2085","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=2085"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2085\/revisions"}],"predecessor-version":[{"id":2086,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2085\/revisions\/2086"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}