Activating project moca?

Frequent Contributor

Hey

I am trying to activate Office365 Moca for Outlook

using this:

https://docs.microsoft.com/sv-se/powershell/module/exchange/set-owamailboxpolicy?view=exchange-ps

 

https://docs.microsoft.com/en-us/microsoft-365/community/yet-another-tool-why-you-will-probably-love...

 

Additional information for admins: This feature is shipped off by default. You can enable it via PowerShell. For reference check Set-OwaMailboxPolicy.

 

 

 

Connecting using

Connect-ExchangeOnline -UserPrincipalName <UPN>

 

Trying this command:

 

Set-OwaMailboxPolicy -ProjectMocaEnabled $true

 

 

But i get this error message

 

cmdlet Set-OwaMailboxPolicy at command pipeline position 1
Supply values for the following parameters:
Cannot display the prompt for "Identity" because type "Microsoft.Exchange.Configuration.Tasks.MailboxPolicyIdParameter" cannot be loa
ded.
    + CategoryInfo          : ResourceUnavailable: (:) [], PromptingException
    + FullyQualifiedErrorId : System.Management.Automation.Host.PromptingException
    + PSComputerName        : outlook.office365.com

 

 

Also tried

 

Set-OwaMailboxPolicy -Identity <upn> -ProjectMocaEnabled $true

 

 

Connection works.

Module version (get-module)

 

Script     2.0.3      ExchangeOnlineManagement     

 

 

Any suggestions?

 

1 Reply

You need to provide the identity of the policy, not a mailbox. Or you can toggle it across all policies:

 

Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -ProjectMocaEnabled $true