It looks like multiple versions of that module have been installed. Please run:
Uninstall-Module -Name Microsoft.WinGet.Client -AllVersions
Then, run:
Install-Module -Name Microsoft.WinGet.Client
Press "Y" to confirm.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone,
In Uniget, I am getting a Microsoft.WinGet.Client update. It won't install in Uniget. On my desktop PC I got it updated in PowerShell with the command "Install-Module -Name Microsoft.WinGet.Client".
On my other machine, it's not that simple. I get the output from the command detailed in the image. Can anyone help? I am totally confused.
Thanks.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
It looks like multiple versions of that module have been installed. Please run:
Uninstall-Module -Name Microsoft.WinGet.Client -AllVersions
Then, run:
Install-Module -Name Microsoft.WinGet.Client
Press "Y" to confirm.
Hi Brett,
You can have it enabled, but exercise caution when installing modules from sources on the web because not all modules on that portal are written by Microsoft.
Hi Brett, I'm Ramesh, here to answer your query at the Microsoft Community.
It's normal to see the " Are you sure you want to install the modules from
'PSGallery'?" when installing something from the PS gallery. PSGallery is hosted by Microsoft, but not all scripts are authored by Microsoft.
However, as "Microsoft.WinGet.Client" is authored by Microsoft, you may just type Y and hit enter to install the module.
Note:
In the future, to set the PowerShell Gallery back to untrusted, you can use the following command from admin PowerShell:
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Untrusted