Welcome › Forums › General PowerShell Q&A › Review lab 2 Task 14
This topic contains 2 replies, has 2 voices, and was last updated by
How do I run Write-EventLog without knowing the -source
from Help file:
"To write an event to an event log, the event log must exist on the computer and the source must be registered for the event log."
Write-EventLog : The source name "JEFF_PS_School" does not exist on computer "localhost".
You either need to use an existing source that you see in the log already, or register a new source, which is a bit more complex.
Yes I intuitively used secCLi earlier but still got an error. Spell checked it and it worked.. Thanks Don
The topic ‘Review lab 2 Task 14’ is closed to new replies.