From 4e87d26ce5415dc4715163bd22dedaa81c018b8e Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Sat, 27 Feb 2021 01:42:31 +0000 Subject: [PATCH] Update windows10.ps1 --- windows10.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/windows10.ps1 b/windows10.ps1 index d8fb6ea..7b4e6b8 100644 --- a/windows10.ps1 +++ b/windows10.ps1 @@ -22,9 +22,7 @@ Start-Job -Name "Installing Optional Windows Features" -ScriptBlock { #https://docs.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-7.1 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 @@ -39,7 +37,7 @@ Start-Job -Name "Installing Optional Windows Features" -ScriptBlock { #https://www.powershellgallery.com/packages/PSWindowsUpdate/2.2.0.2 #https://www.powershellgallery.com/packages/SpeculationControl/1.0.14 #https://www.powershellgallery.com/packages/xCertificate/3.2.0.0 - ForEach ($module in ("AnonUpload", "Carbon", "PoshInternals", "PowerShellProTools", "PSWindowsUpdate", "xCertificate")){ + ForEach ($module in ("AnonUpload", "Carbon", "PoshInternals", "PowerShellGet", "PowerShellProTools", "PSWindowsUpdate", "xCertificate")){ Update-Module -Name $module -Force Install-Module -Name $module -Force Import-Module -Name $module -Force