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
Ad_de_Roo Hello, Teams includes a built-in policy named 'RestrictedAnonymousAccess' which contains pre-defined settings. The predefined settings in the meeting policy can't be edited or changed by admins. It's very common that users in organizations are assigned to this policy (causing issues).
The policy should not be used and this is an example of how you can remove it
https://docs.microsoft.com/en-us/microsoftteams/meeting-policies-restricted-anonymous-access
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.
- ChristianBergstromJan 25, 2021Silver Contributor
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!