title: List all mailboxes that forward to a specific user
body: <p>I have this script that lists all mailboxes that are forwarding email, however, I am curious if there would be a way to make it return all mailboxes that forward to a specific user. Basically I'm trying to find out every mailbox that forwards mail to "johndoe". Any help would be greatly appreciated! This is for exchange 2007 btw...</p>
  
  <p>Here's the script so far:</p>
  
  <blockquote>
    <p>$fwds = get-mailbox | Where-Object { $_.ForwardingAddress -ne $null }
    | select Name, ForwardingAddress</p>
    
    <p>foreach ($fwd in $fwds) {$fwd | add-member -membertype noteproperty
    -name “ContactAddress” -value (get-contact $fwd.ForwardingAddress).WindowsEmailAddress}</p>
    
    <p>$fwds</p>
  </blockquote>