question

JonSteel-6658 avatar image
0 Votes"
JonSteel-6658 asked KaelYao-MSFT edited

Move emails from junk

We have had all emails from a certain sender be delivered to our corporate email account into the JUnk folder - this is some 400 people. Although we've now added the sender as a safe sender, I am looking for a powershell command to run across all users to move the specific email out of Junk into the inbox.

I've found scripts to find and delete, or move from a mailbox to a different mailbox, but not from Junk to Inbox.

Using Office365 - does anyone know of a script to achieve this?

Thanks in advance.

Jon

windows-server-powershelloffice-exchange-online-itprooffice-exchange-server-dev
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Jon.

I suppose that you may need a EWS script to achieve your goal.
However, currently in the Exchange forum we do not support writing scripts.

Another workaround would be setting a inbox rule via the Outlook clients.
The rule should be like "if the sender is sender@contoso.com, move the email to inbox".
You may need to select the "Junk Email" folder when creating the rule and check the "Run this rule now on messages already in 'Junk Email'" to have the rule run on existing emails.
87118-31.png


0 Votes 0 ·
31.png (14.5 KiB)

Thanks for this, but the rule would only work on emails as they come in or have to be setup and run manually by the end users, I was looking for a way to automate this behind the scenes.

Again, thanks anyway though.

0 Votes 0 ·

Hi,Jon.

Yes, I suppose that you may need to use an EWS script anyway.

And since the question is related to EWS script, I have added the "office-exchange-server-dev" tag which is used for exchange development to it.
Thanks for your understanding and hope you can get an answer to the question.

1 Vote 1 ·

0 Answers