Really trying hard to get into Powershell, but way too often hitting the wall! (I will be in bed by now if I was using the GUI) anyway...
I am trying to add an email to the sender blacklist. After logging in successfully to the Exchange (365), I run the following command to add the email address I wish to block:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains "firstname.lastname@example.org"
I then get the following error:
The junk Email configuration couldn't be set. The user needs to sign in to Outlook Web App before they can modify their safe senders and recipients or blocked senders lists.
How can I make this work?
I thought that powershell could do anything, so why logging in to the GUI?
I have also logged in to the Outlook Web App many times before & only using 1 user