Jump to content

Winget Not Recognized

Recommended Posts


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

  • Administrators

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

  • 2 weeks later...
  • Administrators

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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