$grpUnifiedSetting = Get-MgBetaDirectorySetting Failed [SOLVED]


Nous tentons actuellement d’activer les fonctionnalités de classifications aux environnements SharePoint et Microsoft Teams comme le propose l’article suivant :

We are currently trying to enable the classifications features for SharePoint and Microsoft Teams environments as proposed in the following article:

https://learn.microsoft.com/fr-fr/entra/identity/users/groups-assign-sensitivity-labels?tabs=microsoft

Nous avons pu installer les modules suivants sur l’environnement PowerShell / We were able to install the following modules on the PowerShell environment

  • Install-Module Microsoft.Graph -Scope CurrentUser
  • Install-Module Microsoft.Graph.Beta -Scope CurrentUser

Mais lorsque nous tentons d’exécuter la commande proposée par Microsoft nous rencontrons l’erreur suivante.

But when we try to run the command offered by Microsoft, we encounter the following error.

17 DEC 2025

Ce matin j’ai refermé ma session powershell et j’ai retenté l’opération mais cette fois ci avec succés. Ne me demander pas pourquoi 😉 / This morning I closed my PowerShell session and tried the operation again, but this time it worked. Don’t ask me why 😉

We use a script for this

$params = @{
Values = @(
@{
Name = « EnableMIPLabels »
Value = « True »
}
)
}

Update-MgBetaDirectorySetting -DirectorySettingId $grpUnifiedSetting.Id -BodyParameter $params

Laurent TERUIN

Laisser un commentaire