Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Limit-EventLog

Limit-EventLog - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Sets the event log properties that limit the size of the event log and the age of its entries.

Limit-EventLog [-LogName] <string[]> [-ComputerName <string[]>] [-MaximumSize <Int64>] [-OverFlowAction {OverwriteA
sNeeded | OverwriteOlder | DoNotOverwrite}] [-RetentionDays <int>] [-Confirm] [-WhatIf] [<CommonParameters>]

The Limit-EventLog cmdlet sets the maximum size of a classic event log, how long each event must be retained, and w