Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PowerShell でイベントログを取得してファイルに出力するサンプル
- # 画面に出力したい場合は、最後の Out-File を外す
- # イベントログ出力前のレジストリ記述等は下記を参考にする
- # http://www.syuhitu.org/other/eventlog/eventlog.html
- Get-EventLog Application -Source AppName1, AppName2, ... -newest 5 -entrytype Error, Warning, Information | Format-Table -Auto -Wrap | Out-File a.log -width 4096 -encoding UTF8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement