Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Remove exchange forwarding for some users and loop help

$
0
0
Hi

We need to remove the email forwarding settings for some of our users. Some users have their email forwarded to "My email [BLAH]" where "[BLAH]" always appears in the name of the contact that the main mailbox forwards to. 

The email address of the "[BLAH]" contact also includes "blah.com" in the external email field.

We need to remove the forwarding for any user who's forwarding settings points to a contact with "[BLAH]" in the name or blah.com in the contacts external email field.

Anyone know some Powershell that might help? I can do the disabling but I can't do the look to go through and check the exsting settings and only remove if ...

Any help much appreciated.

Olly

Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>