Feb 23 2021 12:04 PM
I was trying to change the MessageCopyForSentAsEnabled property for a mailbox per the instructions in:
Messages sent from a shared mailbox aren't saved to the Sent Items folder - Exchange | Microsoft Docs
It looks pretty simple. First I did:
Get-ExoMailbox -Identity "account@mydomain.com" -properties Name,MessageCopyForSendOnBehalfEnabled,MessageCopyForSentAsEnabled
I got the results I expected. The property was set to false.
Then I did:
set-mailbox -Identity "account@mydomain.com" -MessageCopyForSentAsEnabled $True
But I get the error message:
The operation couldn't be performed because object 'account@mydomain.com' couldn't be found on '*********.NAMPR10A002.PROD.OUTLOOK.COM
Any ideas why it can find the account with the Get-ExoMailbox (And Get-Mailbox) commands but can't find it with the set-mailbox command?
Feb 23 2021 01:20 PM
Solution@John Twohig Hi, short of time here trying to go through a couple of questions so will not suggest anything else than this. Try using the M365 admin portal instead. Groups - Shared mailboxes - Sent items (edit) tick the check boxes.
Feb 23 2021 02:30 PM
That wasn't what I was trying to do but it looks like a better solution. I didn't know that was there.
I will have the person who is having the issue try it in the morning.
Thanks
Feb 24 2021 07:21 AM
Hi,
Please execute the command with alias name only as below:
Set-mailbox -Identity "AliasName" -MessageCopyForSentAsEnabled $True
Please try this command and check the output is showing correctly or not??/
Get-Mailbox -Identity "account@mydomain.com" | fl Name, *message*
Get-Mailbox -Identity "AliasName" | fl Name, *message*
Regards,
MD
Feb 24 2021 11:32 PM - edited Feb 24 2021 11:33 PM
Have you tried to send it through a pipe?
Get-ExoMailbox -Identity xxx | set-mailbox -MessageCopyFor...
Same result?
Feb 23 2021 01:20 PM
Solution@John Twohig Hi, short of time here trying to go through a couple of questions so will not suggest anything else than this. Try using the M365 admin portal instead. Groups - Shared mailboxes - Sent items (edit) tick the check boxes.