-1

How can I create a "comment" Level of a log manually ? in number the level is 5. Here an image:enter image description here

CommentLevel(5)

2 Answers2

1

I did some testing myself and think I got what you are looking for.

Write-EventLog -LogName Application -EntryType "Information" -EventId 666 -Message "Events are fun"  -Category 1  -Source "Application"

enter image description here

enter image description here Source: Write-Eventlog

Mogash
  • 130
  • 1
  • 7
  • Hello this is not an "information" entrytype. This is a "Comment" type. Information type = loglevel 4, comment type = loglevel 5, write-eventlog cannot create log with entrytype of "comment" – Kerberos5938 Nov 10 '21 at 13:37
0

The logs is "Verbose" type from information.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 18 '21 at 17:49