Created
March 8, 2024 19:37
-
-
Save joerodgers/71cfb0a1d64ccfd4a722bdeb953fbb32 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
#requires -version 7 | |
#requires -modules "Microsoft.Graph.Authentication", "Microsoft.Graph.Beta.Identity.DirectoryManagement" | |
$params = @{ | |
Values = @( | |
@{ | |
Name = "EnableMIPLabels" | |
Value = "True" | |
} | |
) | |
} | |
Connect-MgGraph -Scopes "Directory.ReadWrite.All" -ErrorAction Stop | |
$grpUnifiedSetting = Get-MgBetaDirectorySetting -Search DisplayName:"Group.Unified" -ErrorAction Stop | Where-Object -Property DisplayName -eq "Group.Unified" | |
Update-MgBetaDirectorySetting -DirectorySettingId $grpUnifiedSetting.Id -BodyParameter $params -ErrorAction Stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment