How to display String name of task category in event log using Write-EventLog? How to display String name of task category in event log using Write-EventLog? powershell powershell

How to display String name of task category in event log using Write-EventLog?


You're probably looking for it in the Application or System log event and the first command you ran created a log named TEST1.

DESCRIPTION This cmdlet creates a new classic event log on a local or remote computer. It can also register an event source that writes to the new log or to an existing log.


Try adding the machine's Authenticated Users or Users group to the message folder's security level. Keep the default permissions. Then either reboot or try to restart the EventLog service.

At an administrator command prompt: net stop eventlog

You will likely be prompted to shutdown other services. You must enter Y to continue. The services being shutdown will normally restart on their own so you just need to wait a few seconds. The eventlog service may fail to shutdown because another service has restarted, it may take a couple of tries to get everything down. Watch the resulting text closely for status.