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
Prerequisites
Steps to reproduce
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
OS Data
Windows update log
Visuals
No response