You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a powershell script that cycles through our servers, runs the command
winget update --source winget
to get a list of all programs for which an update is available on the current server and tries to install found updates. Since I run the script from a central server, I use the following Invoke-Command to run the above command on the remote server:
This works fine so far, except that I get different results through Invoke-Command in comparison to running simply winget update --source winget directly on the remote machine.
I am at a loss as to why that is the case. It does not matter if I run the script in Powershell 5 or 7 as wells as an admin or not. Does anybody have a similar problem or even the same? And does anybody have an idea as to why that behaviour is happening?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have written a powershell script that cycles through our servers, runs the command
winget update --source wingetto get a list of all programs for which an update is available on the current server and tries to install found updates. Since I run the script from a central server, I use the following
Invoke-Commandto run the above command on the remote server:This works fine so far, except that I get different results through
Invoke-Commandin comparison to running simplywinget update --source wingetdirectly on the remote machine.I am at a loss as to why that is the case. It does not matter if I run the script in Powershell 5 or 7 as wells as an admin or not. Does anybody have a similar problem or even the same? And does anybody have an idea as to why that behaviour is happening?
Yours
David
"Example"
Run remotely (with invoke-command):
SearchName SearchId SearchVersion AvailableHeader
Cloud PBX 2.0 Cisco.Webex 43.11.0.27795 45.10.0.33234
Google Chrome Google.Chrome 141.0.7390.123 142.0.7444.60
AvailableUpgrades
Run locally:
SearchName SearchId SearchVersion AvailableHeader
Cloud PBX 2.0 Cisco.Webex 43.11.0.27795 45.10.0.33234
Google Chrome Google.Chrome 141.0.7390.123 142.0.7444.60
Greenshot 1.3.290 Greenshot.Greenshot 1.3.290 1.3.301
MSTeams Microsoft.Teams 25255.703.3978.7153 25275.2601.4002.2815
AvailableUpgrades
Beta Was this translation helpful? Give feedback.
All reactions