From f271d2a2ef55fbc567b7b05ad775a9916ec839a4 Mon Sep 17 00:00:00 2001 From: Nathan McNulty <6653432+nathanmcnulty@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:43:02 -0900 Subject: [PATCH] Fix PowerShell command -Search returns 3 results breaking the rest of the directions. Use Where-Object instead. --- docs/identity/users/groups-assign-sensitivity-labels.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/identity/users/groups-assign-sensitivity-labels.md b/docs/identity/users/groups-assign-sensitivity-labels.md index 86963014a7a..39b6e662f9c 100644 --- a/docs/identity/users/groups-assign-sensitivity-labels.md +++ b/docs/identity/users/groups-assign-sensitivity-labels.md @@ -46,7 +46,8 @@ All Microsoft operated regions should choose Microsoft. All other regions should 1. Fetch the current group settings for the Microsoft Entra organization and display the current group settings. ```powershell - $grpUnifiedSetting = Get-MgBetaDirectorySetting -Search DisplayName:"Group.Unified" + $grpUnifiedSetting = Get-MgBetaDirectorySetting | Where-Object { $_.Values.Name -eq "EnableMIPLabels" } + $grpUnifiedSetting.Values ``` If no group settings were created for this Microsoft Entra organization, you get an empty screen. In this case, you must first create the settings. Follow the steps in [Microsoft Entra cmdlets for configuring group settings](~/identity/users/groups-settings-cmdlets.md) to create group settings for this Microsoft Entra organization.