Replacing Eventlog With Winevent

Replace the removed *-EventLog cmdlets (Get-EventLog, Write-EventLog, New-EventLog, Clear-EventLog, Limit-EventLog, Show-EventLog, Remove-EventLog) with Get-WinEvent / New-WinEvent or System.Diagnostics.EventLog in PowerShell 7.x. Use during the powershell-5.1-to-7-upgrade scenario for the EventLog blocker bucket.

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit bb39fb2ecb

Frequently asked questions

npx get-skill add microsoft/replacing-eventlog-with-winevent