PowerShell 2 min read · Updated 6 Dec 2026

PowerShell 7 is coming to Windows: prepare the automation, not just the installer

On this page
  1. Separate deprecation from removal
  2. Test the way the job actually runs
  3. Make the first migration deliberately small

PowerShell migration worksheet comparing execution hosts and account context

Editorial illustration for this article; not a product screenshot.

Catch-up review. Original announcement: 2026-11-17. Prepared 6 December 2026; not breaking news.

PowerShell 7 arriving with Windows will make the modern shell easier to reach. It will not tell us whether a scheduled task, deployment script or old management module is ready to use it. The useful work starts with the execution context of each job.

The PowerShell team announced the change on 17 November. Microsoft plans inclusion beginning with the next Windows release. That is a forward-looking change, rather than a claim that every supported Windows machine already includes PowerShell 7.

Separate deprecation from removal

KB5137172 says Windows PowerShell 5.1 is deprecated, remains supported with the relevant Windows lifecycle, and will be removed from a future Windows version on a timetable to be communicated. Deprecation should therefore create a migration backlog. It should not trigger an emergency edit of every task to point at a different executable.

A useful inventory has one row per job: owner, executable, account, trigger, modules, remoting dependencies and recovery procedure. Include the scripts called by other scripts. Otherwise, a successful top-level launch can hide an incompatible child process.

Test the way the job actually runs

The migration guide explains side-by-side operation and differences in modules, profiles and remoting. An interactive administrator session is a poor substitute for a service account running unattended.

Consider an illustrative maintenance job that succeeds when an administrator opens a terminal. The scheduled version may use another profile, working directory or module path. Its failure might appear only after a reboot, when cached state disappears. The test should reproduce that context and verify the resulting task, rather than accepting a zero exit code alone.

The announcement also identifies unfinished MSIX work around SYSTEM execution, DISM cmdlets and machine-wide settings. Check the live packaging issue against the exact package you intend to deploy. Do not assume that a newer shell version resolves every packaging limitation.

Make the first migration deliberately small

Choose a job with an owner, observable output and a clear rollback. Record its current behaviour, run the proposed version against representative non-production inputs, and compare the outcome. Include authentication failure, missing modules and a second run: repeat execution can expose problems that the first run misses.

For a job that changes resources, keep the old schedule disabled rather than allowing both versions to act on the same target. Promotion should include ownership of alerts and a documented way to return to the previous host.

PowerShell itself is open source; migration still consumes engineering time, and the Azure operations a script invokes may incur charges. The decision should rest on compatibility and supportability, not an assumption that an installer change makes the work free.

Start with the inventory. It gives you a defensible order for migration and identifies the small set of jobs that need deeper investigation before their host changes.

Cheers,

Marcos Nogueira

Connect with me on LinkedIn

Search