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-wineventnpx skills add microsoft/upgrade-agent-plugins --skill replacing-eventlog-with-winevent -a claude-code -gnpx skills add microsoft/upgrade-agent-plugins --skill replacing-eventlog-with-winevent -a codex -ggemini skills install https://github.com/microsoft/upgrade-agent-plugins.git --path plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/replacing-eventlog-with-wineventgh skill install microsoft/upgrade-agent-plugins replacing-eventlog-with-wineventgit clone --depth 1 https://github.com/microsoft/upgrade-agent-plugins /tmp/microsoft__upgrade-agent-plugins
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/replacing-eventlog-with-winevent ~/.claude/skills/replacing-eventlog-with-winevent # Claude Code
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/pwsh/replacing-eventlog-with-winevent ~/.agents/skills/replacing-eventlog-with-winevent # Codex, Cursor, Gemini CLI, Copilot, OpenCode