D
D
Drovosek012021-10-02 13:09:57
PowerShell
Drovosek01, 2021-10-02 13:09:57

Why is Nuget automatically installed from an untrusted repository?

You need to convert .iso to .vhdx. I found a video instruction - https://www.youtube.com/watch?v=mgNq41PlULA

I opened PowerShell as administrator and ran the first command from the video:
Install-Module -Name Convert-WindowsImage
After that I confirmed the automatic installation of Nuget and after a minute Powershell asked me if I want to install something something from an untrusted repository.

61582eb444c7e910169031.png

A number of questions follow from this:
1. What kind of repository are we talking about? Where can I see the link to the repository that Powershell uses?
2. Why does Powershell use an untrusted repository by default? Before that, I didn’t open powershell at all and didn’t touch the settings associated with it and with any system repositories.
3. Where can I manually download this Nuget so that it installs as Powershell asks (i.e. in C:\Program Files\PackageManagement\ProviderAssemblies)? From the official Nuget site from the "Download" section, a simple .exe file is downloaded - CLI.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaxKozlov, 2021-10-02
@Drovosek01

It's just that all repositories, even the default PSGallery , are not reliable by default.
Make it reliable so that there are no unnecessary questions.
View info about it, including URL
Get-PSRepository
Make it trusted
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
By the way, PackageManagement and PowerShellGet should also be updated.

D
Drno, 2021-10-02
@Drno

stop using youtube as guides to solve those problems
use Disk2Virtual
Question - what the fuck?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question