Skip to content

winget update shows different results if run locally vs remotely #6140

@dteusner

Description

@dteusner

Relevant area(s)

WinGet CLI

Relevant command(s)

locally

winget update --source winget

remotely

Invoke-Command -ComputerName "SOME_SERVER_NAME" -ScriptBlock { winget update --source winget }

Brief description of your issue

Via Powershell the command "winget update" shows different results when run locally on a server as to run via "invok-command"

Steps to reproduce

Running "winget update" directly on a server shows the following options:

Image

While running the same command via invoke command, gives these results:

Image Image

The update for "MS Teams" is missing

Expected behavior

Both ways should produce the same results

Actual behavior

Different ways different results

Environment

PS C:\Windows\System32> winget -v
v1.28.190

PS C:\Windows\System32> winget --info
WindowsPackageManager
MainCopyrightNotice

Windows: Windows.Server v10.0.17763.8511
SystemArchitecture

KeyDirectoriesHeader
----------------------------------------------------------------------------------------
Logs                 %TEMP%\WinGet\defaultState
UserSettings         %LOCALAPPDATA%\Microsoft\WinGet\Settings\defaultState\settings.json
PortableLinksUser    %LOCALAPPDATA%\Microsoft\WinGet\Links
PortableLinksMachine C:\Program Files\WinGet\Links
PortableRootUser     %LOCALAPPDATA%\Microsoft\WinGet\Packages
PortableRoot         C:\Program Files\WinGet\Packages
PortableRoot86       C:\Program Files (x86)\WinGet\Packages
InstallerDownloads   %USERPROFILE%\Downloads
ConfigurationModules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

Links
--------------------------------------------------------------------------------
PrivacyStatement         https://aka.ms/winget-privacy
LicenseAgreement         https://aka.ms/winget-license
ThirdPartSoftwareNotices https://aka.ms/winget-3rdPartyNotice
MainHomepage             https://aka.ms/winget
WindowsStoreTerms        https://www.microsoft.com/en-us/storedocs/terms-of-sale

AdminSettingHeader                        StateHeader
-------------------------------------------------------
LocalManifestFiles                        StateDisabled
BypassCertificatePinningForMicrosoftStore StateDisabled
InstallerHashOverride                     StateDisabled
LocalArchiveMalwareScanOverride           StateDisabled
ProxyCommandLineOptions                   StateDisabled
DefaultProxy                              StateDisabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions