How-to make PSGallery a trusted repository

Execute the following steps to make PSGallery a trusted repository:

  1. Open a PowerShell console window using “Run as Administrator”.
  2. Run the following code:
Set-PSRepository -Name 'PSGallery' -InstallationPolicy 'Trusted'

Leave a Reply

Your email address will not be published. Required fields are marked *