...Because someone's gotta tell the story...


To return to the main Blog List, click Full Blog Listing.


Site Updates

Fixing the "Source Doesn't Exist" in PowerShell

Friday, October 25, 2013 in Powershell (Views: 3149)
This is a fairly annoying error, but an easy fix. When using the Write-EventLog cmdlet, you may run into this error:

write-eventlog : The source name "(your source)" does not exist on computer "localhost".

To simply get around this, use the New-EventLog as such:

New-EventLog -LogName System -Source “your source”

You will now be able to write to the Event Log from PowerShell.


Related Blogs You May Be Interested In:

To leave a comment, please log in and/or register.