Skip to content

Instantly share code, notes, and snippets.

@pmatthews05
Last active May 28, 2021 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmatthews05/0165fbc6ccb91e53a2e26efea1f02156 to your computer and use it in GitHub Desktop.
Save pmatthews05/0165fbc6ccb91e53a2e26efea1f02156 to your computer and use it in GitHub Desktop.
Write-host "Teams Meeting Policy"
Get-CsOnlineUser -Filter {TeamsMeetingPolicy -eq 'GivenPolicyNameBlankForGlobal'} | Select UserPrincipalName
@pmatthews05
Copy link
Author

I think for the Teams Module they have updated this code. So you use $null instead of blank or Global.

Get-CsOnlineUser -Filter {TeamsAppPermissionPolicy -eq $null} | Select UserPrincipalName

Let me know if that works for you.

@garbertschow
Copy link

Thank you so far. I will try tomorrow and report back. Have a nice day.

@garbertschow
Copy link

$null works! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment