Skip to content

TLS 1.2 Support When Installing PackageManagement Module #1315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 19, 2020
Prev Previous commit
Next Next commit
Update src/PowerShellEditorServices/Services/PowerShellContext/Handle…
…rs/GetVersionHandler.cs

Co-authored-by: Tyler James Leonhardt <tylerl0706@gmail.com>
  • Loading branch information
serkanz and TylerLeonhardt authored Jun 18, 2020
commit e70923f6c56bcc77e30fb8c0a23c80702572eeea
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private async Task CheckPackageManagement()
{
StringBuilder errors = new StringBuilder();
await _powerShellContextService.ExecuteScriptStringAsync(
"powershell.exe -NoLogo -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber'",
"powershell.exe -NoLogo -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber' -Repository PSGallery",
errors,
writeInputToHost: true,
writeOutputToHost: true,
Expand Down