Jump to content

MS Team mailbox PowerShell - set-mailbox -messagecopyforsendonbehalfenabled


Recommended Posts

Posted

Good afternoon.

 

Might be my brain or I'm just missing something but I cannot connect to a Team mailbox from Powershell.

 

Trying to run

set-mailbox [email protected] -MessageCopyForSendOnBehalfEnabled $True

and I am getting "couldn't be found"

 

Even if I try get-mailbox, I am getting this error on all Office 365 Group mailboxes, but I can connect to users and shared mailboxes with no issues.

 

Permissions are set correctly, I am member and owner of the Teams I am trying to connect to.

 

Anyone got any ideas?

Posted

Might be wrong, but Teams are not a mailbox are they?

Certainly they have their own PowerShell commands as you have to connect to a Microsoft Teams instance and not Exchange to do most of the PowerShell commands.

Posted
Might be wrong, but Teams are not a mailbox are they?

Teams do have mailboxes associated with them and you can view them under Groups in the Exchange Admin Center. Group Type is displayed as "Office 365"

Posted

I take it you are actually using -Identity in the command? As it's missing from the line you posted originally. Just wondering if it's having problems translating the user :p

 

Also if it's 365 group shouldn't you be using Get-UnifiedGroup/Set-UnifiedGroup?

 

Steve

Posted
I take it you are actually using -Identity in the command? As it's missing from the line you posted originally. Just wondering if it's having problems translating the user :p

You don't need to use -identity with set-mailbox command when you specify the full email address of the mailbox.

 

Also if it's 365 group shouldn't you be using Get-UnifiedGroup/Set-UnifiedGroup?

 

Steve

 

Tried Get-UnifiedGroup/Set-UnifiedGroup, doesn't work with a Team mailbox.

Posted
Update from Microsoft, it's not a mailbox! So why can I add the Team mailbox as a shared folder in Outlook? If a Team doesn't have a mailbox, where are the messages stored?
Posted

It is a groupmailbox rather than normal mailbox, but it's a unifiedgroup that it's assigned to

 

Same reason you can open a teams channel message in outlook :p

 

Steve

Posted
Call from Microsoft, basically it's not possible to manage a Teams mailbox in the same way you can with a shared or user mailbox with PowerShell. Suggested I send feedback to Microsoft user voice. Bit of a flaw here I think, I want messages sent of behalf of the Team going into the Teams sent items.
Posted (edited)

Really not too sure what you overall aim is here. If you're talking a 365 group you can enable it as mentioned above.

 

If you're talking a teams group, then that setting you're trying to do won't actually do anything as the Team doesn't send any messages, it's just distributing it on a senders behalf.

 

Unless I'm totally misunderstanding what you're trying to achieve :p

 

Edit - Ah ninja'd! So you just want to be able to see who's sending what as an admin? Rather than everyone being able to see what's sent?

 

Steve

Edited by Steve21
Posted
OK I will explain. I have two people connected to a Teams mailbox and for compliance, I need to ensure any messages that are sent via Outlook on behalf of the Team, are available in the sent items in the Team mailbox. Microsoft have confirmed, it is not possible to configure this via PowerShell for a Team mailbox.
Posted

Now this is assuming you mean send as in using email via the teamname/address, but I'm sure you can do that as we have it on some of ours

 

I think you just had to disable the group being hidden, then you can open it within Outlook showing what emails have been sent "to the group" which is then in turn, those that are distributed

 

Set-UnifiedGroup -Identity TeamName -HiddenFromExchangeClientsEnabled:$False

 

Then just open it within Outlook and you should be able to see them, obviously this example only has the "original" teams email but the principle should show any others

 

TeamsEmail.png

 

Like that?

 

Steve

Posted (edited)
They use Outlook online, permissions have been set so they can see and open the Team mailbox and all folders from within their personal email account. The issue is when they send an email as the Team from Outlook, the sent message is saved in their own personal sent items folder not the Teams sent items folder. Microsoft have confirmed there is no way of configuring all sent-on-behalf or sent-as messages from a Team to save directly into the Team sent items folder as you can with other shared mailboxes. Edited by djm968

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...