Juan Espinoza 0 Posted April 2, 2023 Posted April 2, 2023 Hi First of all, thanks for any help you can give me. I am trying to install a product from the Microsoft store, I am using the following powershel command: winget install "app name". If I use this command directly from CMD or Powershell, it does work, but when I run it from the ESET console it gives me the following message The term 'winget' is not recognized as a cmdlet name Am I omitting something? Could you advise me what I can do or how to do it, please?
Administrators Marcos 5,458 Posted April 2, 2023 Administrators Posted April 2, 2023 I don't think works as a Powershell cmdlet, e.g. if you create a ps1 file with "powershell winget search %appname%", right-click it and select "Run with PowerShell", it won't run. However, if you enter "winget search %appname%" in the PowerShell console, it works.
Juan Espinoza 0 Posted April 12, 2023 Author Posted April 12, 2023 I tried as you indicate, and in both scenarios it works. Any recommendation?
Administrators Marcos 5,458 Posted April 13, 2023 Administrators Posted April 13, 2023 First a command must work if you run it via "psexec.exe -s %command%". If you can't make it work with psexec, it won't work via the Run command task either.
Recommended Posts