Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Write-Eventlog -EventID 7036 Description Issue

$
0
0

Hi

I am attempting to write a service stop event to the system event log. An example of the command s I have been using is:

write-eventlog -logname system -source "Service Control Manager" -entrytype information -eventid 7036 -message "The server service has entered the stop state."

The event populates into the Correct log with the correct details with one exception, the description. The description on the general tab within the system log on Event Viewer displays:

The description for Event ID 7036 from source Service Control Manager cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

The Server service entered the stopped state.

the message resource is present but the message is not found in the string/message table

As opposed to the description when a manual stop of the Server Service is performed:

The Server service entered the running state.

I need the description to appear like it does when the manual stop is performed. Can someone tell me how (if) I can achieve this? 

Thanks in advance.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>