How can I create a "comment" Level of a log manually ?
in number the level is 5.
Here an image:
Asked
Active
Viewed 228 times
-1
-
1[Write-EventLog](https://learn.microsoft.com/en-gb/powershell/module/Microsoft.PowerShell.Management/Write-EventLog)? – JosefZ Nov 09 '21 at 19:58
-
You should provide some kind of code / error – dcaz Nov 09 '21 at 21:59
2 Answers
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"
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.

Kerberos5938
- 15
- 4
-
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