Oct 30 2020 04:17 PM
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
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?
Oct 31 2020 09:39 AM
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