SOLVED

Enabling Meeting Attendance Report

%3CLINGO-SUB%20id%3D%22lingo-sub-1474639%22%20slang%3D%22en-US%22%3EEnabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1474639%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20tried%20to%20enable%20the%20Teams%20Attendance%20report%20for%20our%20Global%20policy%20however%20when%20I%20run%20the%20PowerShell%20command%20I%20receive%20the%20following%20message%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3CEM%3EThe%20WriteObject%20and%20WriteError%20methods%20cannot%20be%20called%20from%20outside%20the%20overrides%20of%20the%20BeginProcessing%2C%20ProcessRecord%2C%20%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Eand%20EndProcessing%20methods%2C%20and%20they%20can%20only%20be%20called%20from%20within%20the%20same%20thread.%3C%2FEM%3E%3CEM%3E%22%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20run%20Get%20commands%20without%20issue%20however%20I%20cannot%20seem%20to%20run%20any%20Set-%20or%20New-%20commands.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20seen%20this%20error%20message%20before%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECode%20sample%20below%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-CSTeamsMeetingPolicy%20-Identity%20Global%20%7C%20ft%20Identity%2CAllowEngagementReport%0A%0ASet-CsTeamsMeetingPolicy%20-Identity%20Global%20-AllowEngagementReport%20Enabled%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1474639%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1475565%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1475565%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435645%22%20target%3D%22_blank%22%3E%40CCorcoran%3C%2FA%3E%26nbsp%3BI'm%20getting%20the%20same%20error.%20Opening%20a%20ticket%20with%20O365%20support%20now%20to%20see%20what%20they%20can%20come%20up%20with.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1476735%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1476735%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435645%22%20target%3D%22_blank%22%3E%40CCorcoran%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20connect%20to%20Skype%20for%20Business%20Powershell%20and%20then%20run%20the%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERun%20PowerShell%20ISE%20as%20Administrator%3CBR%20%2F%3ESet-ExecutionPolicy%20unrestricted%3CBR%20%2F%3EImport-Module%20SkypeOnlineConnector%3CBR%20%2F%3E%24cred%20%3D%20Get-Credential%3CBR%20%2F%3E%24session%20%3D%20New-CsOnlineSession%20-Credential%20%24cred%20-Verbose%3CBR%20%2F%3EImport-PSSession%20-Session%20%24session%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20in%20case%20you%20face%20any%20issues%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20Regards%2C%3C%2FP%3E%3CP%3ESatish%20U%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1477384%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1477384%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F704084%22%20target%3D%22_blank%22%3E%40Brisby%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20you%20hear%20back.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259632%22%20target%3D%22_blank%22%3E%40Satish2805%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20suggestion.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20I%20ran%20ISE%20in%20the%20administrator%20context%2C%20and%20with%20similar%20code%20to%20what%20you%20suggested%20(script.png)%20and%20received%20the%20same%20message%20as%20before%20(console.png).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20other%20ideas%20are%20greatly%20appreciated...%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3ECC%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1477414%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1477414%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259632%22%20target%3D%22_blank%22%3E%40Satish2805%3C%2FA%3E%26nbsp%3BWe%20are%20seeing%20the%20exact%20same%20issue.%20We%20are%20trying%20to%20enable%20this%20for%20our%20Global%20Policy%3CBR%20%2F%3E%3CBR%20%2F%3ESet-CSTeamsMeetingPolicy%20-Identity%20Global%20-AllowEngagementReport%20Enabled%3CBR%20%2F%3Egives%20us%20that%20error%20%22The%20WriteObject%20and%20WriteError%20methods%20cannot%20be%20called%20from%20outside%20the%20overrides%20of%20the%20BeginProcessing%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EGet-CSTeamsMeetingPolicy%20-Identity%20Global%20%7C%20Set-CSTeamsMeetingPolicy%20-AllowEngagementReport%20Enable%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGives%20me%20this%20error%20%22You%20are%20not%20permitted%20to%20invoke%20Set-CsTeamsMeetingPolicy%20with%20the%20following%20parameters%3A%3CBR%20%2F%3E%26nbsp%3BInstance%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1482467%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1482467%22%20slang%3D%22en-US%22%3EThis%20should%20have%20been%20fixed%20now.%20Most%20of%20the%20Customer%20were%20affected%20due%20to%20the%20updates.%20Please%20run%20the%20Powershell%20now%20and%20see%20if%20you%20still%20see%20the%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EWith%20Regards%2C%3CBR%20%2F%3ESatish%20U%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1483283%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1483283%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259632%22%20target%3D%22_blank%22%3E%40Satish2805%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20again%20and%20I%20am%20still%20seeing%20the%20issue.%20What%20updates%20were%20causing%20the%20issue%3F%20Is%20there%20something%20else%20that%20we%20have%20to%20do%20to%20get%20it%20working%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECCorcoran%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1484613%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1484613%22%20slang%3D%22en-US%22%3Etry%20the%20following%3A%3CBR%20%2F%3EGet-CsTeamsMeetingPolicy%20-Identity%20Global%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20LiveCaptionsEnabledType%20is%20set%20to%20EnabledUserOverride%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20the%20following%3A%3CBR%20%2F%3E%3CBR%20%2F%3ESet-CsTeamsMeetingPolicy%20-Identity%20Global%20-LiveCaptionsEnabledType%20DisabledUserOverride%3CBR%20%2F%3E%3CBR%20%2F%3ELooks%20like%20EnabledUserOverride%20is%20an%20invalid%20PS%20Value%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20any%20additional%20meeting%20policies%20with%20this%20value%2C%20you%20will%20also%20want%20to%20configure%20the%20same%20value.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1484736%22%20slang%3D%22en-US%22%3ERe%3A%20Enabling%20Meeting%20Attendance%20Report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1484736%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F432093%22%20target%3D%22_blank%22%3E%40ShawnColeman%3C%2FA%3E%26nbsp%3BThank%20you%20very%20much.%20That%20resolved%20the%20issue.%20Appreciate%20the%20effort%20to%20find%20the%20solution.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi All,

 

We have tried to enable the Teams Attendance report for our Global policy however when I run the PowerShell command I receive the following message:

 

"The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing, ProcessRecord,
and EndProcessing methods, and they can only be called from within the same thread."

 

I can run Get commands without issue however I cannot seem to run any Set- or New- commands. 

 

Has anyone seen this error message before? 

 

Code sample below:

Get-CSTeamsMeetingPolicy -Identity Global | ft Identity,AllowEngagementReport

Set-CsTeamsMeetingPolicy -Identity Global -AllowEngagementReport Enabled

 

8 Replies

@CCorcoran I'm getting the same error. Opening a ticket with O365 support now to see what they can come up with.

Hi @CCorcoran 

 

Can you please connect to Skype for Business Powershell and then run the command.

 

Run PowerShell ISE as Administrator
Set-ExecutionPolicy unrestricted
Import-Module SkypeOnlineConnector
$cred = Get-Credential
$session = New-CsOnlineSession -Credential $cred -Verbose
Import-PSSession -Session $session

 

Let me know in case you face any issues

 

With Regards,

Satish U

Hi @Brisby,

 

Please let me know if you hear back. 

 

Hi @Satish2805.

 

Thank you for your suggestion. 

 

Yes, I ran ISE in the administrator context, and with similar code to what you suggested (script.png) and received the same message as before (console.png). 

 

Any other ideas are greatly appreciated... 

 

Kind regards,

CC 

@Satish2805 We are seeing the exact same issue. We are trying to enable this for our Global Policy

Set-CSTeamsMeetingPolicy -Identity Global -AllowEngagementReport Enabled
gives us that error "The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing"

Get-CSTeamsMeetingPolicy -Identity Global | Set-CSTeamsMeetingPolicy -AllowEngagementReport Enable

 

Gives me this error "You are not permitted to invoke Set-CsTeamsMeetingPolicy with the following parameters:
 Instance"

 

 

This should have been fixed now. Most of the Customer were affected due to the updates. Please run the Powershell now and see if you still see the issue.

With Regards,
Satish U

Hi @Satish2805,

 

I tried again and I am still seeing the issue. What updates were causing the issue? Is there something else that we have to do to get it working? 

 

CCorcoran 

best response confirmed by CCorcoran (New Contributor)
Solution
try the following:
Get-CsTeamsMeetingPolicy -Identity Global

If LiveCaptionsEnabledType is set to EnabledUserOverride

Do the following:

Set-CsTeamsMeetingPolicy -Identity Global -LiveCaptionsEnabledType DisabledUserOverride

Looks like EnabledUserOverride is an invalid PS Value

If you have any additional meeting policies with this value, you will also want to configure the same value.

@ShawnColeman Thank you very much. That resolved the issue. Appreciate the effort to find the solution. 

 

www.000webhost.com