Forum Discussion
How to change default meeting option for who can present org wide?
- Jul 22, 2020Take a look at meeting policies: https://docs.microsoft.com/en-us/microsoftteams/meeting-policies-in-teams This is something you can configure with PowerShell
When I try to remove the RestrictedAnonymousUserAcces policy I use:
$restrictedAnonymousUsers = @(Get-CsOnlineUser |? TeamsMeetingPolicy -eq "RestrictedAnonymousAccess" | %{ $_.ObjectId })
New-CsBatchPolicyAssignmentOperation -PolicyType TeamsMeetingPolicy -PolicyName $null -Identity $restrictedAnonymousUsers -OperationName "Batch unassign meeting policy"
it returns a error:
New-CsBatchPolicyAssignmentOperation : Cannot bind argument to parameter 'PolicyName' because it is an empty string.
Empty string is used to indicate the default Global policy must be used. Also a "" returns the same error.
Any suggestion how to resolve this? f.e $null becomes $Global ?
Turned out to be that in order for the New-CsBatchPolicyAssignmentOperation command to work with a $null you need to have the latest version of the PowerShell Modules. After the command 'Update-Module' it all worked like a charme.
Thanks for your support.
Ad_de_Roo Hi! Was just about to reply when noticed you had updated your post. Well, that's great. My plan was to "walk you through" with the prerequisites (in other words what you just did) and then start with the first script. Thanks for the update and well done!