Skip to content

Instantly share code, notes, and snippets.

@nobusugi246
nobusugi246 / RecoverPSGallery.ps1
Created March 21, 2018 07:48 — forked from guitarrapc/RecoverPSGallery.ps1
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