Skip to main content

Set-MceGlobalRetentionPolicy

SYNOPSIS

Updates the retention interval of the global retention policy.

SYNTAX

Set-MceGlobalRetentionPolicy [-Minimum] <MceRetentionInterval> [-Maximum] <MceRetentionInterval> [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

This cmdlet updates the minimum and maximum retention intervals of the global retention policy.

EXAMPLES

EXAMPLE 1

$minimumRetentionInterval = Get-MceRetentionInterval -Unit Days -IntervalInDays 5

$maximumRetentionInterval = Get-MceRetentionInterval -Unit Days -IntervalInDays 6

Set-MceGlobalRetentionPolicy -Minimum $minimumRetentionInterval -Maximum $maximumRetentionInterval

Updates the minimum and maximum intervals of the global retention policy, if the user confirms the action. This will the global data retention date range to between the set minimum and maximum days; this may result in data being deleted. Please ensure that this is in line with your organizational data retention policy.

EXAMPLE 2

$minimumRetentionInterval = Get-MceRetentionInterval -Unit Days -IntervalInDays 5

$maximumRetentionInterval = Get-MceRetentionInterval -Unit Days -IntervalInDays 6

Set-MceGlobalRetentionPolicy -Minimum $minimumRetentionInterval -Maximum $maximumRetentionInterval -Force

Updates the minimum and maximum intervals of the global retention policy without requiring user confirmation. This will the global data retention date range to between the set minimum and maximum days; this may result in data being deleted. Please ensure that this is in line with your organizational data retention policy.

PARAMETERS

-Minimum

The minimum retention interval.

Type: MceRetentionInterval
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Maximum

The maximum retention interval.

Type: MceRetentionInterval
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Force

The force option.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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.

INPUTS

OUTPUTS

None

NOTES

MindLink Docs