Review lab 2 Task 14

Welcome Forums General PowerShell Q&A Review lab 2 Task 14

This topic contains 2 replies, has 2 voices, and was last updated by

2 years, 11 months ago.

  • Author
  • #34889

    Points: 71
    Rank: Member

    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

    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    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

    Points: 71
    Rank: Member

    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.