'Error when installing chocolatey on windows 7 64 bits

Am trying to install chocolatey on windows 7 64 bits. Am using documentation Here when I type the code below in the command prompt.

PowerShell Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

it throws the error as shown in the screenshots below

screenshots

I do not know what the error is all about. I just added Powershell infront of the code before i runs it



Solution 1:[1]

The Chocolatey website requires TLS 1.2 to access it and download the installation script from.

Take a look at this blog post as it explains the change, the commands you can run in PowerShell to see if you're supported and what you can do for older legacy systems (such as Windows 7).

Solution 2:[2]

upgrade your power shell version and try i to got this error after upgrading my powershell version this error geon

Solution 3:[3]

Solution 4:[4]

Ok, if I ever come back I will document the whole procedure of installing chocolatey to Windows 7.

  1. Install all Windows updates.
    1. Check for updates.
    2. Install updates
    3. Reboot
    4. Repeat above steps a million times until there are no new updates (~20 hours).
  2. Install NET4.5 if not installed, should be installed.
  3. Install Windows Management Framework WMF
  4. Install powershell
    1. Go to https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2
    2. Click MSI package
    3. Download and install.
  5. Run powershell as administrator.
    1. Install chocolatey from the official link https://chocolatey.org/install
  6. Cleanup disc C: to remove all temporary files from windows updates (~7GB in my case)

Solution 5:[5]

In my case, Windows Update destroyed my fresh Win7 SP1 x86 evaluation version downloaded from microsoft.com

What worked for me was:

  • Download the Easy Fix to enable TLS 1.2
  • Download and install .Net Framework 4.8 (any 4.x should work)
  • Download chocolatey nuget file, rename to .zip, extract and run tools\chocolateyInstall.ps1 as described in choco docs
  • At this point choco is installed but PowerShell is still 2.x, so run choco install powershell to get 5.1

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pauby
Solution 2 kalyan
Solution 3 Dharman
Solution 4 KamilCuk
Solution 5 Gerardo Grignoli