TokenToSeaSkill 广场
English 控制台

Replacing Eventlog With Winevent

Microsoft官方

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.

安装

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