Get-MsIdGroupWithExpiration
SYNOPSIS
Return groups with an expiration date via lifecycle policy.
SYNTAX
DateTimeSpan (Default)
Get-MsIdGroupWithExpiration [[-After] <DateTime>] [[-Before] <DateTime>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Days
Get-MsIdGroupWithExpiration [[-Days] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
{{ Fill in the Description }}
EXAMPLES
EXAMPLE 1
Get-MsIdGroupWithExpiration | ft Id,DisplayName,ExpirationDateTime,RenewedDateTime
Return all groups with an expiration date.
EXAMPLE 2
Get-MsIdGroupWithExpiration -After (Get-Date).AddDays(-30) -Before (Get-Date).AddDays(30) | ft Id,DisplayName,ExpirationDateTime,RenewedDateTime
Return all groups with an expiration date between 30 days before today and 30 days after today.
EXAMPLE 3
Get-MsIdGroupWithExpiration -Days 30 | ft Id,DisplayName,ExpirationDateTime,RenewedDateTime
Return all groups with an expiration date between now and 30 days from now.
PARAMETERS
-Days
Numbers of days
Type: Int32
Parameter Sets: Days
Aliases:
Required: False
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-After
Start of DateTime range
Type: DateTime
Parameter Sets: DateTimeSpan
Aliases:
Required: False
Position: 1
Default value: [datetime]::MinValue
Accept pipeline input: False
Accept wildcard characters: False
-Before
End of DateTime range
Type: DateTime
Parameter Sets: DateTimeSpan
Aliases:
Required: False
Position: 2
Default value: [datetime]::MaxValue
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.