Jump to content

Recommended Posts

Posted

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
Posted

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.

  • 2 weeks later...
  • Administrators
Posted

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...