Activating project moca?

Iron Contributor


I am trying to activate Office365 Moca for Outlook

using this:


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
    + CategoryInfo          : ResourceUnavailable: (:) [], PromptingException
    + FullyQualifiedErrorId : System.Management.Automation.Host.PromptingException
    + PSComputerName        :



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