Table of Contents
Microsoft removed the optional Windows PowerShell 2.0 engine from Windows 11 version 24H2 starting in August 2025. Windows PowerShell 5.1 remains available and PowerShell 7 can be installed separately. Most users only need to take action if an old script or application explicitly asks for the 2.0 engine.
Look for old version switches
Review startup scripts, scheduled task actions and application launchers for arguments that request version 2, such as -Version 2 or -v 2 after powershell.exe. Also review a script’s #Requires -Version 2 directive. It specifies a minimum version, so that line alone does not force the 2.0 engine.
Test in the shell your tools support
- For a script you maintain, make a copy and update the launcher to use the current Windows PowerShell engine. Use a test machine or test data if the script makes changes.
- Run
$PSVersionTable.PSVersionin the shell to check its version. Verify the script’s modules, output, exit codes and behavior when run from its actual scheduled task or service account. - If an application supplies the launcher or script, check for an update from the publisher before editing its files.
See Microsoft’s list of removed Windows features for the rollout details. If you plan to move to PowerShell 7, test module compatibility separately. pwsh.exe starts PowerShell 7, while powershell.exe starts Windows PowerShell. You can keep both profiles in Windows Terminal.
Reader Comments 0
Sign in with email or Google to join the discussion.