Commands in blog entry don't work
- Dominant language
- MDX
- Stars
- 223
- Forks
- 248
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 8
Description
The operating system is Windows 7 Version 6.1 Build 7601 SP1.
According to blog post [Removing Support For Old TLS Versions On The Chocolatey Website](https://blog.chocolatey.org/2020/01/remove-support-for-old-tls-versions/), is possible to find out which protocols are being used and add TLS 1.2 explicitly. However it doesn't work:
```
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> [Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'
False
PS C:\Windows\system32> [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
PS C:\Windows\system32> [Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'
False
PS C:\Windows\system32> [System.Net.ServicePointManager]::SecurityProtocol.HasFlag([Net.SecurityProtocolType]::Tls12)
Method invocation failed because [System.Net.SecurityProtocolType] doesn't contain a method named 'HasFlag'.
At line:1 char:59
+ [System.Net.ServicePointManager]::SecurityProtocol.HasFlag <<<< ([Net.SecurityProtocolType]::Tls12)
+ CategoryInfo : InvalidOperation: (HasFlag:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
PS C:\Windows\system32>
```
PowerShell info:
```
PS C:\Windows\system32> $PSVersionTable
Name Value
---- -----
CLRVersion 2.0.50727.5420
BuildVersion 6.1.7601.17514
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1
PS C:\Windows\system32>
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked “Removing Support For Old TLS Versions On The Chocolatey Website” blog entry and compare its commands with the reported Windows 7 PowerShell 2.0 output. Reproduce the commands in that environment if available; done means the documentation accurately explains whether the commands work and what users should do.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100