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

 
Participant
3 years, 2 months ago.

  • Author
    Posts
  • #34889

    Participant
    Topics: 106
    Replies: 231
    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

    Keymaster
    Topics: 13
    Replies: 4872
    Points: 1,811
    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

    Participant
    Topics: 106
    Replies: 231
    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.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort