Open fdhin opened 1 year ago
It sounds like you don't have Winget installed at the system level
I do have Winget installed in System mode mode but when I try to run the remediation script, I also get this error:
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object. At C:\Users\mduwady\Cision\IntuneTest - Documents\Scripts\Remediations\winget-upgrade-remediate.ps1:18 char:3
+ CategoryInfo : InvalidOperation: (:String) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression
Running the Winget Update remediation script.
However, it fails. I enabled script logging on a Windows 11 x64 Enterprise Edition and ran the script there. Output is below. What could be the reason?