Clear-OldExchangeLog
SYNOPSIS
Clean out old Exchange Server logs.
SYNTAX
Clear-OldExchangeLog [[-Days] <Int32>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Remove any Exchange logs that are older than a specified date.
EXAMPLES
EXAMPLE 1
Clear-OldExchangeLog -Days 60
This will remove all Exchange logs older than 60 days.
PARAMETERS
-Days
The number of days to keep logs for. Any logs older than this will be removed.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: 60
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
-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
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).