From 8fcf3600e01d3787d3c7d107e4ee7e7dcffc2a72 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Fri, 19 Feb 2021 21:11:17 +0000 Subject: [PATCH] Update windows10.ps1 --- windows10.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows10.ps1 b/windows10.ps1 index 596e2db..12c2185 100644 --- a/windows10.ps1 +++ b/windows10.ps1 @@ -29,6 +29,10 @@ Start-Job -Name "Installing Optional Windows Features" -ScriptBlock { Install-PackageProvider -Name NuGet -Force Install-Module -Name PowerShellGet -Force Update-Module -Name PowerShellGet -Force + + #https://github.com/PowerShell/PowerShellGetv2/issues/303 + Set-PSRepository -Name PSGallery -InstallationPolicy Trusted + Install-PackageProvider -Name PowerShellGet -Force -Scope CurrentUser #https://www.powershellgallery.com/packages/Carbon/2.9.4 Install-Module -Name Carbon -Force