Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Enable TLS Version 1.2 on Windows 7

June 18, 2024
in Blog, Powershell, Windows 7
0
ADVERTISEMENT

Table of Contents

No longer supports TLS versions 1.0 and 1.1

By default, earlier PowerShell versions use SSL 3.0 and TLS 1.0 to establish secure HTTPS connections to repositories.  Windows 7 enables SSL 3.0 and TLS 1.0 by default.

[enum]::GetNames([System.Net.SecurityProtocolType])
9x8gb4eza9pmWOGu13dzYBKaHOfhAn7ub5suTZd3zxfCvxEWM3PJ0H9YeM8r

According to Microsoft documentation TLS 1.2 is enabled by default on Windows editions. But in some cases, if it not enabled, you can check and enable it manually.

TLS protocol version support

🟢 = Enabled by default | ❌ = Not enabled by default

For example, as of April 2020, the PowerShell Gallery no longer supports Transport Layer Security (TLS) versions 1.0 and 1.1. Client must use TLS 1.2 or higher to establish a connection to the repository. When connecting to the repository on Windows 7, you would get the following error.

PS C:\Users\bonben> Install-Module -Name ExchangeOnlineManagement
The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Install-Module <<<<  -Name ExchangeOnlineManagement
    + CategoryInfo          : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Enable TLS Version 1.2 on Windows 7

Steps to enable TLS 1.2 on Windows 7 are:

  • Install the .NET Framework 4.5 and higher on the Windows 7.
  • Upgrade PowerShell 2.0 to PowerShell 5.1.
  • Enable TLS 1.2 by registry.

Install the .NET Framework 4.5 and higher

Note Note: If the .NET Framework is installed on your computer. You can skip this step.
uJD7vKNVLn99gBjkgIMI1gIHwAJvdeqDXdnlykF3rD8vIXe6r7DEK9AAjEbg

You can download then install the .NET Framework 4.5 or higher from Microsoft.

Download links for the framework: Microsoft Download Center | Direct link 

Related posts:

  • Timestamp Signature Or Certificate Could Not Be Verified Or Is Malformed in Windows 7.
  • Net Framework 4 Installation A Certificate Chain Processed in Windows 7.

Upgrade PowerShell in Windows 7

1. Before you begin, you need to upgrade the PowerShell version in Windows 7 to PSVersion 5.1. The preinstalled PowerShell version in Windows 7 is 2.0.50727.5420.

PS C:\Users\bonben> $PSVersionTable
Name                           Value
----                           -----
CLRVersion                     2.0.50727.5420
BuildVersion                   6.1.7601.17514
PSVersion                      2.0
WSManStackVersion              2.0

2. To update to PowerShell 5.1, let’s download the below security updates then install it on your computer. Please download the update to fit your Windows architecture. In our case, we’ll download the package for Windows 7 64-bit.

Download
MmQPQ4ZxPhT3Z1zsFOmo8eyFxy9vcXLiNHIap5kQxnk3fNcaoe2jqxYfdgdY

3. Open the downloaded file to install the PowerShell 5.1 normally.

xqjkDwvbxR1LLvjUtKsWd4KoVG0wTvUL3Ctl9WAyrp6vMY1AFdCAqjJijOnl

4. Restart the computer to take the change goes into effect.

02j6QZRFjm4Y1U3CzIQaw7qJzvj7FA0qZjM10m4ceH6gn1rtFMXhW2ZOAI1v

5. Once done, you can verify the PowerShell version using $PSVersionTable command.

PS C:\Users\bonben> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14409.1005
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1005
CLRVersion                     4.0.30319.34209
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Enable TLS 1.2 on Windows 7

1. Once the PowerShell version is upgraded, we need to install the KB3140245 Windows update from the Microsoft Update Catalog. This update will create the registry key paths in which you will create new registry keys. These registry keys will allow you to enable TLSv1.2 on your Windows 7.

Download

Or you can get it from the direct link form Microsoft: KB3140245.

2. Open the downloaded file to install the update KB3140245.

aw2f9FcD4A3mmE3ejOwboCtnLFpp6nh3xdoG82j1p8DbJZq1xczbRvqlrtrN

3. You may ask to restart your computer. Let’s restart it to continue.

4. Now, this is time to add registry keys for TLS versions 1.1 and 1.2. Open PowerShell as administrator then copy the below commands and paste them into the opening PowerShell window.

Set-ItemProperty `
    -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' `
    -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

Set-ItemProperty `
    -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' `
    -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

5. Restart your computer one more time to take the changes go into effect.

Check if the TSL 1.2 is enable on Windows 7

1. To check your current settings in the Microsoft .NET Framework, let’s open Windows PowerShell as administrator then run the following command:

[Net.ServicePointManager]::SecurityProtocol

As you can see, now, your Windows can access websites and apps require TLS 1.2.

FwvEzP7c3mgz7rM4Uza3TqyofPnlbYQAOgjbjcA3Tog8yLR7Q5sFUMLuACix

2. To list the available protocols on your local workstation, and on your local Powershell profile you’re using, let’s run the following command:

[enum]::GetNames([System.Net.SecurityProtocolType])
lEIYecTfiIqnFJ4euqFPehB36FeHjN6QDmBqLPFOg0sm7z5tnD5H4oQIBzyo

3. To verify it’s working. We’ve installed the Exchange Online PowerShell module. To install that module, the PowerShell needs to connect to PSGalery using TLS 1.2.

PS C:\Users\bonben> Install-Module -Name ExchangeOnlineManagement

NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet
 provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or
'C:\Users\bonben\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by
running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install
and import the NuGet provider now?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
PS C:\Users\bonben> Get-InstalledModule

Version    Name                                Repository           Description
-------    ----                                ----------           -----------
3.1.0      ExchangeOnlineManagement            PSGallery            This is a General Availability (GA) release of t...

That’s it, hope this post can help you to enable and use TLS 1.2 on your Windows 7 computer.

ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (2 votes)
Previous Post

How to Bypass the Internet Connection When Installing Windows 11

Next Post

Installation Failed Error Message 404 WordPress on CyberPanel

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory