Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

How to write SCOM parameters in Application event log description

$
0
0

Hi All,

I have this following command:

$MM = Get-SCOMClass –Name Microsoft.Windows.Computer | Get-SCOMClassInstance
| where-object {$_.InMaintenanceMode -eq $true}| Select DisplayName
Now i want to create windows event log that will write the $MM values in the event description:
EventCreate /l Information /ID 123 /L application /D "There are object in Maintenance Mode:" $MM
Why its not working?

I will appreciate any advice you may have.


TechNet



Viewing all articles
Browse latest Browse all 11941

Trending Articles



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