Set-AzureADMSGroupLifecyclePolicy
Updates a specific group Lifecycle Policy in Azure Active Directory
Syntax
Default (Default)
Set-AzureADMSGroupLifecyclePolicy
-Id <String>
[-GroupLifetimeInDays <Int32>]
[-ManagedGroupTypes <String>]
[-AlternateNotificationEmails <String>]
[<CommonParameters>]
Description
The Set-AzureADMSGroupLifecyclePolicy command updates a specific group Lifecycle Policy in Azure Active Directory
Examples
Example 1
PS C:\> Set-AzureADMSGroupLifecyclePolicy -Id "b4c908b0-3595-4add-91b4-c5400b31b57b" -GroupLifetimeInDays 200 -AlternateNotificationEmails "admingroup@contoso.com"
This command updates the specified groupLifecyclePolicy in Azure Active Directory
Parameters
-AlternateNotificationEmails
Notification emails for groups that have no owners will be sent to these email addresses. List of email addresses separated by a ";".
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-GroupLifetimeInDays
The number of days a group can exist before it needs to be renewed
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
Specifies the ID of a groupLifecyclePolicies object in Azure Active Directory
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-ManagedGroupTypes
Allows the admin to select which office 365 groups the policy will apply to. "None" will create the policy in a disabled state. "All" will apply the policy to every Office 365 group in the tenant. "Selected" will allow the admin to choose specific Office 365 groups that the policy will apply to.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Outputs
Object
Notes
See the migration guide for Set-AzureADMSGroupLifecyclePolicy to the Microsoft Graph PowerShell.