Skip to content

Commit fe90b8b

Browse files
authored
Fix link for SQL Server 2012 Native Client 🧗
1 parent d7fdb4c commit fe90b8b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Powershell/TLS 1.2 Enforcement/Invoke-EnforceSCOMTLS1.2.ps1

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
=================================================================================
5353
5454
SCOM TLS 1.2 / 1.3 Configuration Script
55-
v 2.3
55+
v 2.4
5656
5757
This script supports: SCOM 2012R2, 2016, 1801, 1807, 2019, and 2022
5858
SQL 2008R2 through 2022
@@ -61,7 +61,7 @@
6161
Original Author: Kevin Holman (https://kevinholman.com/)
6262
Author: Blake Drumm (https://blakedrumm.com/)
6363
64-
Last Updated: May 5th, 2024
64+
Last Updated: May 7th, 2024
6565
6666
Blog Post: https://blakedrumm.com/blog/enforce-tls-1-2-scom/
6767
@@ -361,12 +361,7 @@ function Start-SCOMTLSEnforcement
361361
try
362362
{
363363
# Microsoft SQL Server 2012 Native Client - QFE (As of writing: 11.0.7001.0)
364-
$releasePage = ((Invoke-WebRequest -UseBasicParsing -Uri 'https://www.microsoft.com/download/details.aspx?id=50402&751be11f-ede8-5a0c-058c-2ee190a24fa6').RawContent).Split("`r`n").Trim()
365-
$releaseDate = ((($releasePage | Select-String -Pattern "^Date Published:\s").ToString()).Split("p>") | Select-Object -Index 3).Replace("</", '').Replace(",", "").Replace("/", "-")
366-
$releaseVersion = ((($releasePage | Select-String -Pattern "^Version:\s").ToString()).Split("p>") | Select-Object -Index 3).Replace("</", '')
367-
$releaseConfirmationLink = ((($releasePage | Where { $_ -match "download-button.*href=(.*)" }).Split(" ") | Select-String "href=`"(.*)`"") | Select-Object -Index 0 | Out-String).Split("`"") | Select-Object -Index 1
368-
$releaseConfirmationPage = "https://www.microsoft.com/download/$releaseConfirmationLink"
369-
$releaseDownloadLink = (((Invoke-WebRequest -UseBasicParsing -Uri $releaseConfirmationPage).RawContent).Split("`r`n").Trim().Split("<") | Where { $_ -match "sqlncli.msi" }).Split("`"") | Where { $_ -match "\/x64\/sqlncli.msi" } | Select-Object -Index 0
364+
$releaseDownloadLink = "https://download.microsoft.com/download/B/E/D/BED73AAC-3C8A-43F5-AF4F-EB4FEA6C8F3A/ENU/x64/sqlncli.msi"
370365
Write-ScriptLog -Step Prerequisites -LogString "Downloading SQL Server 2012 Native Client automatically from: '$releaseDownloadLink'" -ForegroundColor Cyan
371366
Start-BitsTransfer -Source $releaseDownloadLink -Destination "$DirectoryForPrerequisites\sqlncli_$releaseVersion.msi"
372367
Out-File -FilePath "$DirectoryForPrerequisites\sqlncli_$releaseVersion-Released-$releaseDate"
@@ -1906,6 +1901,7 @@ if ($AssumeYes -or $SkipDotNetCheck -or $SkipModifyRegistry -or $SkipRoleCheck -
19061901
}
19071902
else
19081903
{
1904+
# Modify the line below to change what happens when you run from PowerShell ISE.
19091905
Start-SCOMTLSEnforcement
19101906
}
19111907
<#

0 commit comments

Comments
 (0)