external help file | Module Name | online version | schema | ms.service | ms.topic | ms.date | ms.author | manager | author | ms.reviewer |
---|---|---|---|---|---|---|---|---|---|---|
Microsoft.Open.MS.GraphV10.PowerShell.dll-Help.xml |
AzureAD |
2.0.0 |
active-directory |
reference |
01/19/2024 |
eunicewaweru |
CelesteDG |
msewaweru |
stevemutungi |
Creates a new groupLifecyclePolicy
New-AzureADMSGroupLifecyclePolicy -GroupLifetimeInDays <Int32> -ManagedGroupTypes <String>
-AlternateNotificationEmails <String> [<CommonParameters>]
Creates a new groupLifecyclePolicy in Azure Active Directory
PS C:\> New-AzureADMSGroupLifecyclePolicy -GroupLifetimeInDays 99 -ManagedGroupTypes "Selected" -AlternateNotificationEmails "example@contoso.com"
This will create a a new groupLifecyclePolicy setting the group lifetime to 99 days for a selected set of Office 365 groups and send renewal notification emails to groups that have no owners to "example@contoso.com"
Notification emails for groups that have no owners will be sent to these email addresses. List of email addresses separated by a ";".
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The number of days a group can exist before it needs to be renewed
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This parameter 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.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
See the migration guide for New-AzureADMSGroupLifecyclePolicy to the Microsoft Graph PowerShell.