Repository navigation
Windows Update does not fresh-install Preview 7 #15692
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to the known issues.
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>
Activity
TravisEz13 commentedon Jun 29, 2021
From windowsupdate.log,
F13D5FD1-FA6A-4F9E-88D4-8B15EA0DBA4Cis the PowerShell update and it deferred by policy on your machine. Can you send a screen shot of your advanced windows update settings?TravisEz13 commentedon Jun 29, 2021
You probably can install this using the
PSWindowsUpdatemodule (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,
This says, get all the updates for PowerShell preview, download, and install them.
237dmitry commentedon Jun 30, 2021
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).
237dmitry commentedon Jun 30, 2021
You never know who will write something.
TravisEz13 commentedon Jun 30, 2021
@alexbuzzbee RE: #15692 (comment), Thanks for explaining what policy was in place, the logs don't say that. It makes the answer more complete.