Skip to content

Commit 6abf2e9

Browse files
author
Serkan ZENGİN
committed
the powershell command to install the update should include the command to use TLS1.2
1 parent 5958ac5 commit 6abf2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetVersionHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private async Task CheckPackageManagement()
118118
{
119119
StringBuilder errors = new StringBuilder();
120120
await _powerShellContextService.ExecuteScriptStringAsync(
121-
"powershell.exe -NoLogo -NoProfile -Command 'Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber'",
121+
"powershell.exe -NoLogo -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber'",
122122
errors,
123123
writeInputToHost: true,
124124
writeOutputToHost: true,

0 commit comments

Comments
 (0)