Last active
September 24, 2020 16:27
-
-
Save mirontoli/484d7f022504c650bc1db0b515eda051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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