* イベントログにメッセージを出力する [#j88c28e3]

** PowerShellから [#n089b520]
 PS> New-EventLog –LogName Application –Source “mytest01”
 PS> Write-EventLog -LogName Application -Source mytest01 -EntryType Information -EventId 1 -Message "hello, world"

https://blogs.technet.microsoft.com/heyscriptingguy/2013/06/20/how-to-use-powershell-to-write-to-event-logs/
- https://blogs.technet.microsoft.com/heyscriptingguy/2013/06/20/how-to-use-powershell-to-write-to-event-logs/

** コマンドプロンプトから [#o3877d4e]

 CMD> eventcreate.exe /id 100 /l system /t information /so cmd /d "hello, world"

- 管理者権限が必要。
- http://www.atmarkit.co.jp/ait/articles/0410/23/news017.html

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS