Skip to content
Evergreen Evergreen
Documentation

PowerShell 7.3 is no longer supported

End of life as of 2024-05-08. Replacement: PowerShell 7.6 (LTS) or later. Source: PowerShell support lifecycle.

Check a version:

evergreen check pkg:generic/powershell

Microsoft’s PowerShell support lifecycle lists 7.3 (built on .NET 7.0) as retired: support ended on 2024-05-08, so it receives no further updates, including security updates. A script or manifest that requires 7.3 targets an unsupported release.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status End of life
Severity high
Ecosystem shell
Component pkg:generic/powershell
Affected versions vers:semver/>=7.3.0\|<7.4.0
Date from the source 2024-05-08
Replacement PowerShell 7.6 (LTS) or later
Evidence last seen 2026-10-22
Reviewed 2026-10-22 by arminazimi
Review due 2027-01-20 (90 days after the last review)
Rule ID shell.powershell.end-of-life-7.3

Sources

Migration

Constraints

  • Raising a minimum version in #Requires -Version or PowerShellVersion stops the script or module from loading on any host that still runs PowerShell 7.3. Confirm every runner, container, and developer machine that executes it can run the target first.
  • Scripts written for Windows PowerShell 5.1 often rely on Windows-only modules and cmdlets. Test them on PowerShell 7 before dropping 5.1 support, and keep a separate minimum for modules that must still load on Windows PowerShell.
  • Update the declaration to a supported release from the replacement. These are suggested changes; nothing applies them automatically.

Steps

  1. Find where the script runs. List the CI jobs, container images, scheduled tasks, and developer setups that execute the reported file, and note which of them still provide PowerShell 7.3.
  2. Install the target PowerShell. Install a supported PowerShell 7 release (the replacement) on those hosts, or change the pinned mcr.microsoft.com/powershell image tag in the workflow to a supported tag.
  3. Raise the declared version. Change #Requires -Version or PowerShellVersion on the reported line to the minimum release the code truly needs, and no lower than a supported release. Do this in every script, module manifest, and workflow image that states the old version.
  4. Run the scripts and tests on the new release. Run the script, its Pester tests, and any module import on the target release, and fix breaking changes in cmdlet behavior or removed APIs.

Verification

  • pwsh -NoProfile -Command "$PSVersionTable": Show the PowerShell version and edition that will run the script, and confirm it is a supported release.
  • pwsh -NoProfile -Command "Get-Module -ListAvailable | Select-Object Name, Version, PowerShellVersion": List installed modules and the PowerShell versions they require, to confirm none still demands the old release.

Detected by

The shell detector. See Detectors and Compatibility.

Other versions of this product

Data

This page is generated from registry/shell.json, rule shell.powershell.end-of-life-7.3, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated