0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windowsイベントログサイズをコマンドで変更する

Posted at

はじめに

  • そもそもイベントビューアーからGUIで設定変更することができる
  • 設定台数が多い時やバッチ処理で設定するときに便利

各イベントログサイズ変更

セキュリティ、セットアップなど個別に設定する必要がある。
また、最大ログサイズの変更は、1024KBしか設定できない

セキュリティログのサイズ変更

wevtutil sl Security /ms:1024000KB

セットアップログのサイズ変更

wevtutil sl Setup /ms:1024000KB

システムログのサイズ変更

wevtutil sl System /ms:1024000KB

おまけ

PowerShellでも変更できる。

limit-eventlog -logname Application -MaximumSize 1024000KB
limit-eventlog -logname Security -MaximumSize 1024000KB
limit-eventlog -logname System -MaximumSize 1024000KB
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?