Need help setting up a PowerShell script that will move an email from a specific domain to another mailbox automatically as soon as it hits the inbox?
Thanks
Need help setting up a PowerShell script that will move an email from a specific domain to another mailbox automatically as soon as it hits the inbox?
Thanks
Hey @Waqkas-Ahmed ,
This sounds like a really good time to use inbox rules. They are easy to create and would be applied when the email arrives.
I'm sure it can be done with PowerShell, but I think it would involve much more work. Not only writing the script, but trying to get it to trigger each time a new email arrives. The inbox rules are for this very scenario.
If there is a reason for using PowerShell instead of inbox rules, let me know, and post what you have so far and I can try to help!
Mike Rodrick
Edutainer, ITProTV
**if the post above has answered the question, please mark the topic as solved.
I have had a look at the redirect rule. I will test and let you know if this is sufficient enough.
Thanks.
@mike-rodrick Thanks, the redirect rule seems to have worked the way we wanted. Thanks for pointing me to this direction