| Richard's profileRichard Siddaway's BlogPhotosBlogLists | Help |
|
December 29 CTP3 – Limit-EventLogIf we look at the event logs that are present on our system we will see how the logs are configured in terms of maximum size, retention days and the action to take in the event of the log becoming full (overflow). PS> Get-EventLog -List Max(K) Retain OverflowAction Entries Name
We can use the Limit-EventLog cmdlet to control these settings. Limit-EventLog -LogName Scripts -MaximumSize 2mb -RetentionDays 9 -OverflowAction OverWriteOlder Note that the maximum size is translated to KB (and must be divisable by 64KB). The overflow actions are limited to
This cmdlet has a computername parameter so we can work remotely – there is a los a whatif and confirm parameter. Remember the need for Administrator privileges to make the changes.
TrackbacksThe trackback URL for this entry is: http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!1957.trak Weblogs that reference this entry
|
|
|