Share via

SqlServer module installation

Tadas Kiškėnas 21 Reputation points
2022-01-13T09:19:32.147+00:00

hello.
i tryn install SqlServer module by Install-Module SqlServer command.
finally got warning:

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules
from 'PSGallery'?

  1. can i trust untrusted repository?
  2. why MS suggest modules from untrusted sources?

thanks.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Answer accepted by question author
  1. Clément BETACORNE 2,501 Reputation points
    2022-01-13T09:51:46.86+00:00

    Hello,

    The Install-Module is based on PowerShellGet which can be used to download and install-module not only from PSGallery that's why when you try to install a new module it will ask you if you trust the repository in this case PSGallery
    So yes you can trust this repository

    Regards,

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.