Creating an eventlog source from the command line

Posted on Wednesday, October 30, 2013 by Nicki

We've all at some stage had to create an eventlog source for an ASP.Net application, as by default it does not have the privileges to create it on the fly. I found this nifty PowerShell command that does this without having to write a console app.

New-EventLog -LogName Application -Source MyApp
Source: http://stackoverflow.com/questions/446691/how-to-create-windows-eventlog-source-from-command-line

0 Responses to "Creating an eventlog source from the command line":