|
52 | 52 | =================================================================================
|
53 | 53 |
|
54 | 54 | SCOM TLS 1.2 / 1.3 Configuration Script
|
55 |
| - v 2.3 |
| 55 | + v 2.4 |
56 | 56 |
|
57 | 57 | This script supports: SCOM 2012R2, 2016, 1801, 1807, 2019, and 2022
|
58 | 58 | SQL 2008R2 through 2022
|
|
61 | 61 | Original Author: Kevin Holman (https://kevinholman.com/)
|
62 | 62 | Author: Blake Drumm (https://blakedrumm.com/)
|
63 | 63 |
|
64 |
| - Last Updated: May 5th, 2024 |
| 64 | + Last Updated: May 7th, 2024 |
65 | 65 |
|
66 | 66 | Blog Post: https://blakedrumm.com/blog/enforce-tls-1-2-scom/
|
67 | 67 |
|
@@ -361,12 +361,7 @@ function Start-SCOMTLSEnforcement
|
361 | 361 | try
|
362 | 362 | {
|
363 | 363 | # 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" |
370 | 365 | Write-ScriptLog -Step Prerequisites -LogString "Downloading SQL Server 2012 Native Client automatically from: '$releaseDownloadLink'" -ForegroundColor Cyan
|
371 | 366 | Start-BitsTransfer -Source $releaseDownloadLink -Destination "$DirectoryForPrerequisites\sqlncli_$releaseVersion.msi"
|
372 | 367 | Out-File -FilePath "$DirectoryForPrerequisites\sqlncli_$releaseVersion-Released-$releaseDate"
|
@@ -1906,6 +1901,7 @@ if ($AssumeYes -or $SkipDotNetCheck -or $SkipModifyRegistry -or $SkipRoleCheck -
|
1906 | 1901 | }
|
1907 | 1902 | else
|
1908 | 1903 | {
|
| 1904 | + # Modify the line below to change what happens when you run from PowerShell ISE. |
1909 | 1905 | Start-SCOMTLSEnforcement
|
1910 | 1906 | }
|
1911 | 1907 | <#
|
|
0 commit comments