Remove-EntraLifecyclePolicyGroup
Tar bort en grupp från en livscykelprincip.
Syntax
Default (Standard)
Remove-EntraLifecyclePolicyGroup
-GroupId <String>
-GroupLifecyclePolicyId <String>
[<CommonParameters>]
Description
Cmdleten Remove-EntraLifecyclePolicyGroup tar bort en grupp från en livscykelprincip i Microsoft Entra ID.
Exempel
Exempel 1: Ta bort livscykelprincipgrupp
Connect-Entra -Scopes 'Directory.ReadWrite.All'
$group = Get-EntraGroup -Filter "DisplayName eq 'Office365 group'"
$policy = Get-EntraLifecyclePolicyGroup -Id $group.Id
Remove-EntraLifecyclePolicyGroup -GroupLifecyclePolicyId $policy.Id -GroupId $group.Id
Value
-----
True
Det här exemplet visar hur du tar bort en grupp från en livscykelprincip i Microsoft Entra ID med angivet ID och groupId.
-
-GroupLifecyclePolicyIdparameter anger objekt-ID för livscykelprincip. -
-GroupIdparameter anger ID för Office365-gruppen.
Parametrar
-GroupId
Anger ID för en grupp i Microsoft Entra ID.
Parameteregenskaper
| Typ: | System.String |
| Standardvärde: | None |
| Stöder jokertecken: | False |
| DontShow: | False |
Parameteruppsättningar
(All)
| Position: | Named |
| Obligatorisk: | True |
| Värde från pipeline: | False |
| Värde från pipeline efter egenskapsnamn: | False |
| Värde från återstående argument: | False |
-GroupLifecyclePolicyId
Anger ID för livscykelprincipobjektet i Microsoft Entra ID.
Parameteregenskaper
| Typ: | System.String |
| Standardvärde: | None |
| Stöder jokertecken: | False |
| DontShow: | False |
| Alias: | Id |
Parameteruppsättningar
(All)
| Position: | Named |
| Obligatorisk: | True |
| Värde från pipeline: | True |
| Värde från pipeline efter egenskapsnamn: | True |
| Värde från återstående argument: | False |
CommonParameters
Den här cmdleten stöder vanliga parametrar: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.