Activating project moca?

%3CLINGO-SUB%20id%3D%22lingo-sub-1840273%22%20slang%3D%22en-US%22%3EActivating%20project%20moca%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1840273%22%20slang%3D%22en-US%22%3E%3CP%3EHey%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20activate%20Office365%20Moca%20for%20Outlook%3C%2FP%3E%3CP%3Eusing%20this%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsv-se%2Fpowershell%2Fmodule%2Fexchange%2Fset-owamailboxpolicy%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fsv-se%2Fpowershell%2Fmodule%2Fexchange%2Fset-owamailboxpolicy%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcommunity%2Fyet-another-tool-why-you-will-probably-love-project-moca-aka-outlook-spaces%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcommunity%2Fyet-another-tool-why-you-will-probably-love-project-moca-aka-outlook-spaces%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EAdditional%20information%20for%20admins%3A%20This%20feature%20is%20shipped%20off%20by%20default.%20You%20can%20enable%20it%20via%20PowerShell.%20For%20reference%20check%20Set-OwaMailboxPolicy.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnecting%20using%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3EConnect-ExchangeOnline%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-UserPrincipalName%3C%2FSPAN%3E%20%3CUPN%3E%3C%2FUPN%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETrying%20this%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESet-OwaMailboxPolicy%20-ProjectMocaEnabled%20%24true%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20i%20get%20this%20error%20message%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Ecmdlet%20Set-OwaMailboxPolicy%20at%20command%20pipeline%20position%201%0ASupply%20values%20for%20the%20following%20parameters%3A%0ACannot%20display%20the%20prompt%20for%20%22Identity%22%20because%20type%20%22Microsoft.Exchange.Configuration.Tasks.MailboxPolicyIdParameter%22%20cannot%20be%20loa%0Aded.%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20ResourceUnavailable%3A%20(%3A)%20%5B%5D%2C%20PromptingException%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20System.Management.Automation.Host.PromptingException%0A%20%20%20%20%2B%20PSComputerName%20%20%20%20%20%20%20%20%3A%20outlook.office365.com%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20tried%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESet-OwaMailboxPolicy%20-Identity%20%3CUPN%3E%20-ProjectMocaEnabled%20%24true%3C%2FUPN%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnection%20works.%3C%2FP%3E%3CP%3EModule%20version%20(get-module)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EScript%20%20%20%20%202.0.3%20%20%20%20%20%20ExchangeOnlineManagement%20%20%20%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1840273%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECommunity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1841213%22%20slang%3D%22en-US%22%3ERe%3A%20Activating%20project%20moca%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1841213%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20need%20to%20provide%20the%20identity%20of%20the%20policy%2C%20not%20a%20mailbox.%20Or%20you%20can%20toggle%20it%20across%20all%20policies%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EGet-OwaMailboxPolicy%20%7C%20Set-OwaMailboxPolicy%20-ProjectMocaEnabled%20%24true%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
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