Juan Espinoza 0 Posted April 2 Share Posted April 2 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? Link to comment Share on other sites More sharing options...
Administrators Marcos 4,935 Posted April 2 Administrators Share Posted April 2 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. Link to comment Share on other sites More sharing options...
Juan Espinoza 0 Posted April 12 Author Share Posted April 12 I tried as you indicate, and in both scenarios it works. Any recommendation? Link to comment Share on other sites More sharing options...
Administrators Marcos 4,935 Posted April 13 Administrators Share Posted April 13 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. Link to comment Share on other sites More sharing options...
Recommended Posts