I'm creating a new item for Windows Server to check app updates. The code works perfectly in PowerShell, but it is not recognized in Zabbix
winget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\path\Winget\ApplicationUpdates.ps1:2 char:12
+ $updates = winget upgrade
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (winget:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
1
How to fix this?
winget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\path\Winget\ApplicationUpdates.ps1:2 char:12
+ $updates = winget upgrade
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (winget:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
1
How to fix this?
Comment