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.
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.
相关文章推荐
- HowTO: Create an Event Log Source in code, without the Permission errors
- How to start a Windows CE emulator from the command line
- How to pass macro definition from “makefile” command line arguments to C source code?
- how to create html from tex source file
- TestNG - How to run TestNG from command line successfully
- How to change Red Hat Linux to boot to command line mode from Gnome
- Ubuntu Tip:How to show desktop from command line
- How to use FTP from the command line.
- How enable/disable windows feature from command line
- How to view or edit pdf/image metadata from command line on Linux
- How to monitor Nginx web server from the command line in real time
- How to create WSDL SourceCode from a webservice.
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- How to resolve "can not start db2 in windows command line"
- How to extract msu/msp/msi/exe files from the command line
- How to download files from the Linux command line
- How to open Firefox and chrome from command line
- how to query name server with command line in Windows.
- How to View / Disconnect Remote Desktop Sessions from Commandline
- how to sync windows time from a ntp time server in command