Skip to content

Instantly share code, notes, and snippets.

@nobusugi246
Forked from guitarrapc/RecoverPSGallery.ps1
Created March 21, 2018 07:48
Show Gist options
  • Save nobusugi246/26acdec77728db1ce07d0766331354f0 to your computer and use it in GitHub Desktop.
Save nobusugi246/26acdec77728db1ce07d0766331354f0 to your computer and use it in GitHub Desktop.
Whom you miss PSGallery with Get-PSRepository!
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -PublishLocation https://www.powershellgallery.com/api/v2/package/ -ScriptSourceLocation https://www.powershellgallery.com/api/v2/items/psscript/ -ScriptPublishLocation https://www.powershellgallery.com/api/v2/package/ -InstallationPolicy Trusted -PackageManagementProvider NuGet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment