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 bb39fb2 4.1 KB Updated 2.7k repo stars

File contents

microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/replacing-eventlog-with-winevent commit bb39fb2ecb

Frequently asked questions

npx skillmds@latest add microsoft/replacing-eventlog-with-winevent