Powershell Win 7 - Chocolatey Installation.
Verfasst: 10.12.2020, 22:54
Hallo,
ich versuche nach dieser Anleitung chocolatey installieren.
Also cmd.exe als Admin und dann siehe unten Konsole Ausgabe:
Nach der Fehler Meldung "Mögliche Enumerationswerte sind "Ssl3, Tls"."
ändere ich diesen Wert 3072 auf [Net.SecurityProtocolType]::Tls
Hier bleibe ich auf dem Schlauch stehen
und weiß nicht weiter.
Danke im Voraus für Eure Hilfe
Grüße, Bernhard
Edit: Jetzt habe ich hier gelesen es sollte mit Tls 1.2 zusammen hängen, Link zu der Seite: https://docs.chocolatey.org/en-us/troubleshooting
dann weiter
https://chocolatey.org/blog/remove-supp ... s-versions
Es sollte hier oben True und nicht False stehen.
Was sagt die powershell?:
Wie komme ich auf Tls 1.2 ?
ich versuche nach dieser Anleitung chocolatey installieren.
Also cmd.exe als Admin und dann siehe unten Konsole Ausgabe:
Code: Alles auswählen
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
C:\Windows\system32>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
PS C:\Windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [Syste
m.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]:
:SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadStri
ng('https://chocolatey.org/install.ps1'))
Ausnahme beim Festlegen von "SecurityProtocol": "Der Wert "3312" kann aufgrund
von ungültigen Enumerationswerten nicht in den Typ "System.Net.SecurityProtocol
Type" konvertiert werden. Geben Sie einen der folgenden Enumerationswerte an, u
nd versuchen Sie es erneut. Mögliche Enumerationswerte sind "Ssl3, Tls"."
Bei Zeile:1 Zeichen:85
+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointMan
ager]:: <<<< SecurityProtocol = [System.Net.ServicePointManager]::SecurityProto
col -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://c
hocolatey.org/install.ps1'))
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
Ausnahme beim Aufrufen von "DownloadString" mit 1 Argument(en): "Die zugrunde
liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden.."
Bei Zeile:1 Zeichen:219
+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointMan
ager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -b
or 3072; iex ((New-Object System.Net.WebClient).DownloadString <<<< ('https://c
hocolatey.org/install.ps1'))
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
PS C:\Windows\system32>
ändere ich diesen Wert 3072 auf [Net.SecurityProtocolType]::Tls
Code: Alles auswählen
PS C:\Windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [Syste
m.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]:
:SecurityProtocol -bor [Net.SecurityProtocolType]::Tls; iex ((New-Object System.
Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Ausnahme beim Aufrufen von "DownloadString" mit 1 Argument(en): "Die zugrunde
liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden.."
Bei Zeile:1 Zeichen:246
+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointMan
ager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -b
or [Net.SecurityProtocolType]::Tls; iex ((New-Object System.Net.WebClient).Down
loadString <<<< ('https://chocolatey.org/install.ps1'))
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
PS C:\Windows\system32>

Danke im Voraus für Eure Hilfe
Grüße, Bernhard
Edit: Jetzt habe ich hier gelesen es sollte mit Tls 1.2 zusammen hängen, Link zu der Seite: https://docs.chocolatey.org/en-us/troubleshooting
dann weiter
https://chocolatey.org/blog/remove-supp ... s-versions
Code: Alles auswählen
PS C:\Windows\system32> [Enum]::GetNames([Net.SecurityProtocolType]) -contains '
Tls12'
False
PS C:\Windows\system32>
Was sagt die powershell?:
Code: Alles auswählen
PS C:\Windows\system32> [Enum]::GetNames([Net.SecurityProtocolType])
Ssl3
Tls
PS C:\Windows\system32>