I'm currently working on rewriting a number of old scripts and I'm taking the opportunity to write them under PS7. I've come to a hard stop when I could not find how to migrate the old logging code that is writing to the event logs.
As *-EventLog cmdlets who rely on unsupported APIs are now deprecated. I'm looking into using newer and supported methods to write to the event log.
Unfortunately, I've been unable to find a relatively direct replacement of a simple usage such as this:
"Write-EventLog -LogName $LogName -Source $Source -EntryType $EntryType -EventId $EventID -Message $Message"
Can anyone share a source of information on "writing event logs for dummies"? :)