Review lab 2 Task 14

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Jeff Taylor Jeff Taylor 10 months ago.

  • Author
    Posts
  • #34889
    Profile photo of Jeff Taylor
    Jeff Taylor
    Participant

    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".

  • #34890
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.

  • #34891
    Profile photo of Jeff Taylor
    Jeff Taylor
    Participant

    Yes I intuitively used secCLi earlier but still got an error. Spell checked it and it worked.. Thanks Don

You must be logged in to reply to this topic.