Adding New Event Log Sources

by Aug 3, 2010

Every event log maintains a list of registered sources. You need a source name if you want to write your own event log entries. Make sure you have administrator privileges to add a new source called "PowerShellScripts" to your application log file, , and call:

New-EventLog Application PowerShellScripts

In the next tip, you'll learn how to write events using your new source.

Twitter This Tip! ReTweet this Tip!