Skip to content

Change behaviour of if/when the update notification check is carried out #25354

Closed as not planned

Description

@kilasuit

Summary of the new feature / enhancement

This is an issue to help build the potential learning path for developing new PowerShell Features, that as part of development and publishing to Preview and then STS/LTS could make use of Experimental Features. This is a reasonably good candidate, due to the different area's that this hits, and with there being potential for futeur aspects of configuration of these enhancements in logic to be contained in 1 or more of system/user powershell profile, EnvVars, RegKeys powershell.config.json or GPO settings, or even from a profile script or other system entirely. There is also the potential implementation of a priority ordering mechanism to favour one of the prior mentioned above the rest. This is why it makes for a good learning excercise, along with lessons learned at the end of this.

The content from this could end up as a Learn.Microsoft learning path.
It also brings up a number of interesting areas to discuss around inclusive design practices & providing easy scalable configrable options.

Note - That doesn't mean an outcome from this will make it beyond a learning & teaching excercise (at least not for me Ryan Yates (@kilasuit)) - with work on this already started and continuing in a branch in my fork.

That said, we have some areas where improvements to this could be undertaken & across previous issues & discussions there have been things that have been asked for by different parts of the community, the below just some that I can remember off the top of my head.

WinGet related

General

  • - Enable a way to determine install method i.e. is it Winget, choco or other tooling
  • - No matter what Install Method, enable setting of a custom message, to add or replace the PowerShell Installation documentation link with an internal link.
  • - Have a single line banner
  • - Add a "critical security update" banner that uses different colouring highlighting and is a configurable opt-in only thing and shown if there is a PowerShell/announcement
  • - Potentially make the check more configurable in when/how it runs

Stretch goals

  • - Explore how complex it would be to extend and add in an additional mechanism that covers the checking for Module/Package updates that makes use of this existing code path in the product in as optimised a way as possible.
  • - Full cross platform support and tested

Most of the above, may never make it into the end product, but as a learning exercise will allow for deeper understanding of all the differnt moving parts needed for what seems simple enough on the surface for providing a notification there is a new update.

Note - most of the above has already been mostly planned & investigated, and is something that I had intended recording for Global Azure and PowerShell.org.uk Gathering on May 10th this year but that failed due to tech issues because I am using old tech that I need to replace but I intend to sometime in the future record content like this, just is in my every growing todo list

Other details inc previous issue content. As an admin, across Windows based devices, I likely have specified how PowerShell should be updated by opting into the update being pushed to devices from MicrosoftUpdate, either at or post install, using documented RegKeys/EnvVars & as such I nor my users should be informed of any updates in the session via it's current mechanism & would prefer this check be better controlled as a background task instead of being a blocker to getting a session up and running.

We should, have a lookup based on how the installation was performed and how it should be managed that is set either as a EnvVar/RegKey/powershell.config.json setting.

As an admin, across a cross platform and complex environment for software deployment, may have Windows, Mac & Linux devices and have a mechanism already in ensuring that all devices are properly updated in line with existing policies, that may include stage-gated updates across variety of devices and users, including across multiple devices to a single or multiple different regular users.

This is particularly true if I've chosen to stay on an LTS release and do not want to get a notification of when STS releases are made in either mine or my users sessions, as this slows me/them down & can add unnecessary additional frustration by showing this message where this could be controlled or displayed to the user in a different manner that provides less friction.

This is an area I did look into about how I think it could be implemented and whilst I think I understand the pieces that need to be inplace to meet this user story from running back through things in this comment and it's links, I did not start work on changing this yet to allow me/others time to think more on this or to potentially implement the needed changes.

I also personally intend on having this as a process better automated, that is more flexible than this current process and will end up built into how my prompt is built as part of releasing a repo with how I currently manage my ever changing and complex profile based on learnings from trying to understand how this works today.

Proposed technical implementation details (optional)

I think there'd need to be a small additional logic check added in the src/Microsoft.PowerShell.ConsoleHost/host/msh/UpdatesNotification.cs file to accomoplish this that would bypass running the rest of the check.

It perhaps requires either additional env var or an addition to powershell.config.json file to allow better control of this, particularly if you/admins may want a blanket "don't show` if current user is in a specific group of users, irrespective of them running in an admin session or not that continues to work across platforms in a consistent manner and ideally ties into other existing install/update processes.

We may also want the update check to instead of being a daily check be more configurable to being checked at a specific time of the day, particularly if we ever re-add daily builds or add other builds that we may want to follow, like in how I was using BuildDownloader to deal with downloading and testing artifacts from PR builds, which I still need to record and show how to use this effectively in future.

Activity

  1. added
    Issue-Enhancement
    Needs-Triage
    on Apr 13, 2025
  2. Jaykul commented on Apr 29, 2025

    @Jaykul
    Contributor

    It's already possible to set the update check to only look at LTS releases, or to turn it off, right?

    It seems to me that anything more flexible should be implemented elsewhere. I mean, I don't think we need to add functionality to PowerShell itself to support other ways of checking for a new release.

    If you want to, say, use a CI build output, or rely on apt or dnf or WinGet or Chocolatey or Scoop or whatever ... it should be straightforward to just turn off the release check and run your own check in your profile (or in a scheduled task, or whatever)...

  3. rhubarb-geek-nz commented on Apr 29, 2025

    @rhubarb-geek-nz

    I would like this feature to be entirely opt-in, and enabled by the setting POWERSHELL_UPDATECHECK to some value

    In principle, programs should not be making internet requests without the user's knowledge. If it must be enabled by default then the message should state explicitly the environment variable to control it, just like the dotnet SDK does with its telemetry.

    The feature by itself is either redundant, misleading or annoying.

    If you install and select WSUS, or use WinGet yourself, the Appstore, homebrew or any other package manager then the existing check is misleading, just because it exists at github.com/PowerShell does not mean it is available by your distribution mechanism

    If you are using those mechanisms you want those mechanisms to manage the updates, not PowerShell.

    When it prints it's message you have to literally search the internet to find out how to turn it off. The .NET SDK is gracious enough to tell you there and then what environment variable to set, eg DOTNET_CLI_TELEMETRY_OPTOUT.

    For the majority of users who just install PowerShell to get a job done, the notification becomes like a VHS Recorder blinking 00:00 because it was too complicated to set the clock.

    In summary, I suggest that nobody really needs PowerShell nagging about new versions. The only people who might care are people who visit this site and already know what versions are available. I am sure you can invent contrived scenarios, but those are really not the common case.

  4. kilasuit commented on Apr 30, 2025

    @kilasuit
    CollaboratorAuthor

    I realise this issue neede to better capture a few of the reqs I've seen be asked for

  5. added
    WG-NeedsReview
    WG-Interactive-Console
    on Apr 30, 2025
  6. kilasuit commented on Jul 20, 2025

    @kilasuit
    CollaboratorAuthor

    rhubarb-geek-nz not gonna address all your comments other than to generally say I get where you & others are coming from and understand why this can be so applicable The feature by itself is either redundant, misleading or annoying. & I'm gonna say annoying probs is the most applicable choice word here, other than it being a suboptimal process/experience right now.

    If you install and select WSUS, or use WinGet yourself, the Appstore, homebrew or any other package manager then the existing check is misleading, just because it exists at github.com/PowerShell does not mean it is available by your distribution mechanism

    If you are using those mechanisms you want those mechanisms to manage the updates, not PowerShell.

    Yes all that's mostly true, yet if you are an admin and have to manage roll out to loads of devices you or even a PowerUser you probs want to know about this as soon as possible really especially for any security updates so that you can push out a new version asap and the quickest way is to take the install package and manage your update process out-of-band to usual processes, bypassing slow public feeds. Though this is also something that you probs want some way to automate too & there are loads of different ways of doing this.

    Personally this is something that I'm thinking that I wanna add to my Prompt and have a background task running to check this regularly as part of my Profile so that I can pull down & publish installers for artifacts and add them to my own internal repositories and manage updates across my infra estate. Though this could potentially be not needed with existing tooling that can manage this all for you. Like Intune, Azure Automation and probs 10k+ other tool combinations.

    In principle, programs should not be making internet requests without the user's knowledge.

    Yet it's documented that we do this, so that is a case of users/admins needing to have read docs & if they want to stop internet calls from software they need to run that software in a network isolated manner, perhaps in a VM or container.

    But just cause today there's no we are making a call to a internet address notification in the tool, doesn't mean this isn't already trackable and traceable today. You just need to know how to do so.

    The .NET SDK is gracious enough to tell you there and then what environment variable to set

    That's a good point & deffo something we could add here or even as a initial startup environment setup mechanism or script or even as a DSC configuration too.

    In summary, I suggest that nobody really needs PowerShell nagging about new versions. The only people who might care are people who visit this site and already know what versions are available. I am sure you can invent contrived scenarios, but those are really not the common case.

    Sorry but there are good reasons why to have this and whilst you cant see the benefit it's there because it has a purpose.

    However, it's current implementation is flawed and it therefore must be more configurable than it is today so that for the Power Users they can opt-out and for IT Admins they can provide thier users, including Power Users, more tailored information that is applicable in their environment like by setting a opt-out mechanism as part of install (like the telemetry opt-out) that sets the env var which will be a further enhancement outside this work but this will provide the groundwork for that to be taken care of so that people like yourself can opt-out and others can control thier environment accordingly whether at install, pre-install, or post-install.

    Joel Bennett (@Jaykul) I deffo get the do this in other places argument but we have to think about all scenarios and this set of enhancements is something that with the amount of issues in here alone that I have commented on about "Not in Winget" etc means we need to manage this better going forward as to reduce unneccessary issues & frustrations that are a resource & time drain here and elsewhere.

  7. added
    Resolution-Won't Fix
    on Mar 18, 2026
  8. kilasuit commented on Mar 18, 2026

    @kilasuit
    CollaboratorAuthor

    Based on the raising of this discussion to remove the notification check as well as having had further thoughts on this I am going to close this issue as Not-Planned.

  9. removed
    Needs-Triage
    on Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-EnhancementResolution-Won't FixWG-Interactive-ConsoleWG-NeedsReview

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions