Skip to content

Commit 15715ea

Browse files
authored
Fix -AssumeYes parameter 🏃
1 parent 89e6273 commit 15715ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# Original Author: Kevin Holman (https://kevinholman.com/)
1010
# Author: Blake Drumm (https://blakedrumm.com/)
11-
# v 2.0
11+
# v 2.1
1212
#
13-
# Last Updated: May 25th, 2023
13+
# Last Updated: June 19th, 2023
1414
#
1515
#=================================================================================
1616
<#
@@ -36,7 +36,7 @@
3636
.PARAMETER SkipDownloadPrerequisites
3737
Skip downloading the prerequisite files to current directory:
3838
- msoledbsql.msi (https://learn.microsoft.com/sql/connect/oledb/download-oledb-driver-for-sql-server)
39-
- msodbcsql.msi (https://learn.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server)
39+
- msodbcsql.msi (https://www.microsoft.com/download/details.aspx?id=50420)
4040
- sqlncli.msi (https://www.microsoft.com/download/details.aspx?id=50402)
4141
4242
.PARAMETER SkipModifyRegistry
@@ -292,7 +292,7 @@ function Start-SCOMTLSEnforcement
292292
}
293293
if (-not $SkipDownloadPrerequisites -and $missingPreq -or $ForceDownloadPrerequisites)
294294
{
295-
if (-NOT $AssumeYes -or $missingPreq)
295+
if (-NOT $AssumeYes -and $missingPreq)
296296
{
297297
do
298298
{

0 commit comments

Comments
 (0)