Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active September 24, 2020 16:27
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 mirontoli/484d7f022504c650bc1db0b515eda051 to your computer and use it in GitHub Desktop.
Save mirontoli/484d7f022504c650bc1db0b515eda051 to your computer and use it in GitHub Desktop.
# Prerequisites
# AllowBasic as Admin, perhaps in a separate window
# Set-ItemProperty -path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Client' -Name AllowBasic -Value 1
# Connect to Exchange Online
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
# you can get $groupId from the SPO object
$exogroup = Get-UnifiedGroup -Identity $groupId
$isYammer = $exogroup.GroupSKU -eq "Yammer"
#Bonus: determine if Team is connected (if $isYammer is $false)
$hasTeam = "Team" -in $exogroup.ResourceProvisioningOptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment