Skip to content

Fix PowerShell 7 updates list silently dropping all modules - #4824

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
Fix-powershell7-update
May 25, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
Fix-powershell7-update

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

Problem

PowerShell 7 modules never show up on the Updates page for users with large module sets. When the user searches an installed module, UniGetUI incorrectly reports both PS5 and PS7 versions as up-to-date even when a newer version exists on PowerShellGallery.

The PS7 ListUpdates task fails completely with a NotFound response from https://www.powershellgallery.com/api/v2/GetUpdates()..., so the updates list comes back empty and every installed PS7 module looks current.

Fix

Replace the Format-Table pipeline with a property-level projection:

Get-InstalledPSResource -Scope <scope> |                                                                                                                                     
    ForEach-Object { $_.Name + [char]9 + $_.Version + [char]9 + $_.Repository }                                                                                              

This emits tab-delimited rows directly from object properties — no formatter, no buffer width, no truncation, regardless of module count. The parser is updated to split on \t and the now-unneeded header/dashes handling is removed.

fix #4781

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit 6a43682 into main May 25, 2026
3 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the Fix-powershell7-update branch May 25, 2026 14:25
@mdurini-swisscom

Copy link
Copy Markdown

hello, the latest version of unigetui 2026.2.2 is still facing the same problem, not showing ps7 modules updates

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] PowerShell 7 modules not listed in the available updates

3 participants