TokenToSeaSkills Hub
中文 Console

Replacing Eventlog With Winevent

MicrosoftOfficial

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-51-to-7-upgrade scenario for the EventLog blocker bucket.

Install

npx skills add microsoft/upgrade-agent-plugins --skill replacing-eventlog-with-winevent