日期:2014-05-16  浏览次数:20954 次

Windows 模拟生成日志 命令

转自http://technet.microsoft.com/en-us/library/bb490899.aspx,用来备份

?

例子:

eventcreate /t error /id 100 /l application /d "Create event in application log"?

eventcreate /t information /id 1000 /so winmgmt /d "Create event in WinMgmt source"?
eventcreate /t error /id 2001 /so winword /l application /d "new src Winword in application log"?
eventcreate /s server /t error /id 100 /l application /d "Remote machine without user credentials"?
eventcreate /s server /u user /p password /id 100 /t error /l application /d "Remote machine with user credentials"?
eventcreate /s server1 /s server2 /u user /p password /id 100 /t error /so winmgmt /d "Creating events on Multiple remote machines"?
eventcreate /s server /u user /id 100 /t warning /so winmgmt /d "Remote machine with partial user credentials"

?

语法: