您的位置:首页 > 其它

How to create Windows EventLog source from command line?

2013-03-01 17:35 826 查看
e.g. 1: eventcreate /ID 1 /L APPLICATION /T INFORMATION /SO OlympicApp /D "Olympic2012 Log"

This will create a new event source named "OlympicApp" under APPLICATION event log as INFORMATION event type.

e.g. 2: eventcreate /ID 2 /L APPLICATION /T ERROR /SO OlympicApp /D "Olympic2012 Log"

This will create a new event source named "OlympicApp" under APPLICATION event log as ERROR event type.

e.g. 3: eventcreate /ID 3 /L APPLICATION /T WARNING /SO OlympicApp /D "Olympic2012 Log"

This will create a new event source named "OlympicApp" under APPLICATION event log as WARNING event type.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: