Submitted By: Kent Finkle

Delete email from the Inbox that was sent from a specific person.

$comments = @'
Script name: Filter-Items.ps1 
Created on: Tuesday, August 07, 2007 
Author: Kent Finkle 
Purpose: How can I use Windows Powershell to 
Delete All the Email Sent From a Specific Person? 
$olFolderInbox = 6 
$o = new-object -comobject outlook.application 
$n = $o.GetNamespace("MAPI") 
$f = $n.GetDefaultFolder($olFolderInbox) 
$Items = $f.Items 
$FilteredItems = $Items.Restrict("[From] = 'Ken Myer'") 
for ($i = $FilteredItems.Count; $i -gt 0; $i--) {