Skip to content

Windows Update does not fresh-install Preview 7 #15692

Closed

Description

Prerequisites

Steps to reproduce

Follow steps based on Preview updating PowerShell 7.2 with Microsoft Update:

Ensure PowerShell 7.1.3 is installed but no PowerShell preview releases are installed.

Create registry values [HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShellCore]UseMU:dword=1 and [HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShellCore\InstalledVersions\39243d76-adaf-42b1-94fb-16ecf83237c8]Install:dword=1. Additionally, as directed in a workaround described in #15510, create a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShellCore\InstalledVersions\31ab5147-9a97-4452-8443-d9709f0516e1.

Ensure Windows Update is set to Receive updates for other Microsoft products when you update Windows. In my case, this is enforced by my organization through MDM.

Reboot and check Windows Update, installing all available updates and manually rechecking until no updates appear.

Expected behavior

PS> pwsh-preview
PowerShell 7.2-preview.7
PS>

Actual behavior

<See screenshot below>

Environment data

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

PS> (Get-CimInstance Win32_OperatingSystem) | Select-Object -Property Version, Caption

Version    Caption
-------    -------
10.0.19042 Microsoft Windows 10 Enterprise

PS> Get-WindowsUpdateLog

<Very long console output snipped, see below-attached file WindowsUpdate.log created by command>

Visuals

msups
WindowsUpdate.log

Activity

  1. ghost added
    Needs-TriageThe issue is new and needs to be triaged by a work group.
    on Jun 29, 2021
  2. TravisEz13 commented on Jun 29, 2021

    @TravisEz13
    Member

    From windowsupdate.log, F13D5FD1-FA6A-4F9E-88D4-8B15EA0DBA4C is the PowerShell update and it deferred by policy on your machine. Can you send a screen shot of your advanced windows update settings?

    021-06-29 12:50:25.3909115 4508  8416  Agent           Update deferred by policy: F13D5FD1-FA6A-4F9E-88D4-8B15EA0DBA4C.200
    
  3. added
    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
    on Jun 29, 2021
  4. TravisEz13 commented on Jun 29, 2021

    @TravisEz13
    Member

    You probably can install this using the PSWindowsUpdate module (using the API). I'm assuming whatever policy it is, it only affects Automatic Updates and not the API.

    Once you have installed the module,

    Get-WindowsUpdate -CategoryIDs c90a4362-d2b6-4bb4-b316-76d14fed63a5 | Install-WindowsUpdate -Download

    This says, get all the updates for PowerShell preview, download, and install them.

  5. ghost closed this as completedon Jun 30, 2021
  6. ghost removed
    Needs-TriageThe issue is new and needs to be triaged by a work group.
    on Jun 30, 2021
  7. 237dmitry commented on Jun 30, 2021

    @237dmitry

    How could you update Powershell via Windows Update? From the first (6+ may be) to 7.1.3 i it was updated by hands (msi).

  8. 237dmitry commented on Jun 30, 2021

    @237dmitry

    See this blog article.

    You never know who will write something.

  9. TravisEz13 commented on Jun 30, 2021

    @TravisEz13
    Member

    @alexbuzzbee RE: #15692 (comment), Thanks for explaining what policy was in place, the logs don't say that. It makes the answer more complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions