Microsoft has recently enhanced the update management process for PowerShell on Windows 10 and Windows 11 by integrating it with the Microsoft Update service. This development aims to provide a more reliable, controlled, and scalable system for updating PowerShell installations, particularly for users of PowerShell 7.2.

Background: The Evolution of PowerShell Updates

Historically, updating PowerShell on Windows required manual intervention. Users had to download and install updates from the official GitHub repository or rely on third-party package managers like Windows Package Manager, Chocolatey, or Scoop. This process was not only time-consuming but also prone to errors, especially in enterprise environments where consistency and reliability are paramount.

Integration with Microsoft Update

To address these challenges, Microsoft has integrated PowerShell updates into the Microsoft Update service. This integration allows PowerShell to receive updates through the same channels as other Microsoft products, such as Windows and Office. By default, PowerShell installations are configured to receive updates via Microsoft Update or Windows Server Update Services (WSUS). This means that once PowerShell is installed, it can automatically check for and apply new updates without requiring manual intervention.

Technical Details

The integration process involves several key steps:

  1. Automatic Updates: PowerShell installations are set to receive updates through Microsoft Update or WSUS by default.
  2. User Configuration: During the update process, users are presented with two options:
  • Enable updates for PowerShell through Microsoft Update or WSUS
  • Enable Microsoft Update when I check for updates

Microsoft recommends that both options be enabled to ensure the system remains fully up-to-date while taking advantage of the Microsoft Update infrastructure.

  1. Command-Line Options: For advanced users and enterprise environments, the PowerShell 7.2 MSI package includes command-line options that offer granular control over update preferences:
  • INLINECODE0 : Set to INLINECODE1 (default) to opt-in for updates via Microsoft Update/WSUS, or INLINECODE2 to opt-out.
  • INLINECODE3 : Set to INLINECODE4 (default) to use Microsoft Update for automatic updates when checking for updates, or INLINECODE5 to opt-out.

It's important to note that setting INLINECODE6 does not disable the update feature completely; it merely stops the automatic usage of the Microsoft Update mechanism when manually checking for updates.

Implications and Impact

The integration of PowerShell updates into the Microsoft Update service offers several benefits:

  • Enhanced Reliability: Users can now rely on a consistent update process that minimizes downtime and ensures that critical security fixes and feature enhancements are applied promptly.
  • Streamlined Update Management: System administrators can manage updates more efficiently, leveraging existing tools and processes for update deployment.
  • Improved Security: Regular and timely updates reduce the risk of vulnerabilities, ensuring that systems remain secure against potential threats.

Conclusion

Microsoft's integration of PowerShell updates into the Microsoft Update service marks a significant advancement in update management for Windows 10 and Windows 11 users. By automating and streamlining the update process, Microsoft is enhancing the reliability, security, and overall user experience of PowerShell on Windows platforms.