イベントログにメッセージを出力する

PowerShellから

 PS> New-EventLog –LogName Application –Source “mytest01”
 PS> Write-EventLog -LogName Application -Source mytest01 -EntryType Information -EventId 1 -Message "hello, world"

コマンドプロンプトから

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

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

Last-modified: 2016-04-12 (火) 08:36:15