Hi All,
I have this following command:
$MM = Get-SCOMClass –Name Microsoft.Windows.Computer | Get-SCOMClassInstance | where-object {$_.InMaintenanceMode -eq $true}| Select DisplayNameNow 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:" $MMWhy its not working?
I will appreciate any advice you may have.
TechNet