Reset-EntraLifeCycleGroup
通过将组上的 RenewedDateTime 属性更新到当前 DateTime 来续订组。
语法
Default (默认值)
Reset-EntraLifeCycleGroup
-Id <String>
[<CommonParameters>]
说明
通过将 Reset-EntraLifeCycleGroup 组上的 RenewedDateTime 属性更新为当前 DateTime 来续订组。
续订后,组的有效期就会延长策略中定义的天数。
示例
示例 1:续订组
Connect-Entra -Scopes 'Group.ReadWrite.All'
$group = Get-EntraGroup -Filter "DisplayName eq 'Sales and Marketing'"
Reset-EntraLifeCycleGroup -Id $group.Id
此示例演示如何续订指定的组。
-
-Id- 指定组对象 ID。
参数
-Id
指定Microsoft Entra ID中的组的 ID。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。