Replies: 4 comments 11 replies
-
I found your great code. One odd problem. Some of the Names and Product IDs get corrupted when pushing all the output from "winget upgrade" into a variable, but this is only a problem on Win10, not on Win11 (see attached image). I'm guessing that the output shown in the article has it too for Microsoft SQL Server Management... entry. The error provides a bogus ID and so the app never updates. Thanks for your great code! |
Beta Was this translation helpful? Give feedback.
-
Anyone had it too? |
Beta Was this translation helpful? Give feedback.
-
Perfect!!
Il sab 15 ott 2022, 11:02 maksimilinskii ***@***.***> ha
scritto:
… I found the root of the problem. I had a couple of different Windows SDK
versions. Probably, some other program installed it as a prerequisite
before, and I forgot about it. I just uninstalled both the versions via
usual "Add or remove programs" in Windows, and reinstalled WindowsSDK via
winget again. The error is gone now.
—
Reply to this email directly, view it on GitHub
<#11 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACXREMVZWNOUR6FLNCMYHDWDJXIRANCNFSM5JFW5EHA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Great script, thanks! At present it doesn't account for packages that have versions set to unknown (e.g. Speedfan). So I changed the get line to:
and then the filter line to:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In reference to your code here
https://www.codewrecks.com/post/general/winget-update-selective/
Your code does not allow for a null value - ie.. nothing to upgrade
I have put your code in the following if statement after you call the winget upgrade
if (!($upgradeResult -match "No installed package found matching input criteria."))
{
your code
}
Now for the proactive remediation bit in MEM
Love your work.
Beta Was this translation helpful? Give feedback.
All reactions