Skip to content

Commit

Permalink
Update MSOLEDB version 🌑
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored Oct 10, 2024
1 parent 8fe0b83 commit bef8f0b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Powershell/TLS 1.2 Enforcement/Invoke-EnforceSCOMTLS1.2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
.PARAMETER SkipDownloadPrerequisites
Skip downloading the prerequisite files to current directory:
- msoledbsql.msi (https://learn.microsoft.com/sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server?branch=main&branchFallbackFrom=pr-en-us-5180&view=sql-server-ver16#1867)
- msodbcsql.msi (https://learn.microsoft.com/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?branch=main&branchFallbackFrom=pr-en-us-5180&view=sql-server-ver16#17105)
- msoledbsql.msi (https://learn.microsoft.com/sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server#1874)
- msodbcsql.msi (https://learn.microsoft.com/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?view=sql-server-ver16#17105)
- sqlncli.msi (https://www.microsoft.com/download/details.aspx?id=50402)
.PARAMETER SkipModifyRegistry
Expand Down Expand Up @@ -321,16 +321,16 @@ function Start-SCOMTLSEnforcement
#>
try
{
# MSOLEDB 18.6.7
$releaseDownloadLink = 'https://go.microsoft.com/fwlink/?linkid=2242656'
$filename = 'msoledbsql_18.6.7'
Write-ScriptLog -Step Prerequisites -LogString "Downloading MSOLEDB 18.6.7 automatically from: '$releaseDownloadLink'" -ForegroundColor Cyan
# MSOLEDB 18.7.4
$releaseDownloadLink = 'https://go.microsoft.com/fwlink/?linkid=2278907'
$filename = 'msoledbsql_18.7.4'
Write-ScriptLog -Step Prerequisites -LogString "Downloading MSOLEDB 18.7.4 automatically from: '$releaseDownloadLink'" -ForegroundColor Cyan
Start-BitsTransfer -Source $releaseDownloadLink -Destination "$DirectoryForPrerequisites\$filename.msi" -ErrorAction Stop
Out-File -FilePath "$DirectoryForPrerequisites\$filename-Released-October 10 2023"
Out-File -FilePath "$DirectoryForPrerequisites\$filename-Released-July 09 2024"
}
catch
{
Write-ScriptLog -Step Prerequisites -LogString "Unable to download MSOLEDB 18.6.7 automatically from: 'https://learn.microsoft.com/sql/connect/oledb/download-oledb-driver-for-sql-server'" -ForegroundColor Red -Status Error
Write-ScriptLog -Step Prerequisites -LogString "Unable to download MSOLEDB 18.7.4 automatically from: 'https://learn.microsoft.com/sql/connect/oledb/download-oledb-driver-for-sql-server'" -ForegroundColor Red -Status Error
}

#ODBC
Expand All @@ -354,7 +354,7 @@ function Start-SCOMTLSEnforcement
}
catch
{
Write-ScriptLog -Step Prerequisites -LogString "Unable to download ODBC 17.10.5 automatically from: 'https://learn.microsoft.com/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows?branch=main&branchFallbackFrom=pr-en-us-5180&view=sql-server-ver16#17105'" -ForegroundColor Red -Status Error
Write-ScriptLog -Step Prerequisites -LogString "Unable to download ODBC 17.10.5 automatically from: 'https://learn.microsoft.com/sql/connect/odbc/windows/release-notes-odbc-sql-server-windows'" -ForegroundColor Red -Status Error
}

# SQL Server 2012 Native Client
Expand Down

0 comments on commit bef8f0b

Please sign in to comment.