{"id":2033,"date":"2017-02-14T20:44:46","date_gmt":"2017-02-14T20:44:46","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2033"},"modified":"2017-02-14T20:45:43","modified_gmt":"2017-02-14T20:45:43","slug":"delete-emails-from-specific-sender-in-one-users-mailbox","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2033","title":{"rendered":"Remove  All Emails from a specific sender"},"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 ada credentials with username of <a href=\"mailto:&lt;username&gt;@domain.com\">&lt;username&gt;@domain.com<\/a><\/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 in Powershell<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>Search-Mailbox -identity &#8220;User Mailbox&#8221; -SearchQuery &#8220;From:user@domain.com&#8221; -deletecontent<\/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 ada 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 in [&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,59],"tags":[],"class_list":["post-2033","post","type-post","status-publish","format-standard","hentry","category-exchange-2007","category-exchange-2010","category-exchange-2013","category-microsoft-exchange-server-2016","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2033","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=2033"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2033\/revisions"}],"predecessor-version":[{"id":2035,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2033\/revisions\/2035"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}