Skip to content

PowerShell v7.2.1 through v7.2.2 - Windows Update Doesn't Install into Original Directory #17211

@thakyZ

Description

@thakyZ

Prerequisites

Steps to reproduce

  • Download Powershell v7.2.1 x64 MSI installer
  • Install Powershell into an internal secondary drive
  • Make sure to enable MU features in the installer
  • Run Windows Update
  • Windows Update should start downloading and installing Powershell v7.2.2
  • After Update notice how the Powershell install folder on the secondary drive is empty and Powershell is now installed on your main drive.

Expected behavior

Windows Update should update Powershell 7 to the original directory you installed it in.

Actual behavior

Windows Update has no regard for where you would like programs installed and instead chooses to install Powershell 7 updates on the main drive.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

OS Data

> (Get-CimInstance Win32_OperatingSystem) | Select-Object -Property Version, Caption
Version    Caption
-------    -------
10.0.19044 Microsoft Windows 10 Pro

Windows update log

> Get-WindowsUpdateLog
# Couldn't seem to upload the log so here is the log on a secret gist.
# https://gist.github.com/thakyZ/52291db72017e22300845488b3c32c9c

Visuals

No response

Metadata

Metadata

Assignees

Labels

Resolution-ExternalThe issue is caused by external component(s).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions