Skip to content

Commit bde9bf6

Browse files
authored
Fix issue with 1 being displayed instead of True 🏫
1 parent fe90b8b commit bde9bf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Powershell/Get-TLSRegistryKeys.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Original Author: Mike Kallhoff
1515
Author: Blake Drumm (blakedrumm@microsoft.com)
1616
Website: https://blakedrumm.com/
17-
Modified: April 18th, 2024
17+
Modified: May 7th, 2024
1818
Hosted here: https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/Get-TLSRegistryKeys.ps1
1919
#>
2020
[CmdletBinding()]
@@ -133,7 +133,7 @@ Function Get-TLSRegistryKeys
133133
@{
134134
n = 'DisabledByDefault'; e = {
135135
$output = ($IsDisabledByDefault).ToString()
136-
if ($output -eq '0')
136+
if ($output -match "0|1")
137137
{
138138
$output.Replace('0', 'False').Replace('1', 'True')
139139
}
@@ -151,7 +151,7 @@ Function Get-TLSRegistryKeys
151151
@{
152152
n = 'IsEnabled'; e = {
153153
$output = ($IsEnabled).ToString()
154-
if ($output -eq '0')
154+
if ($output -match "0|1")
155155
{
156156
$output.Replace('0', 'False').Replace('1', 'True')
157157
}

0 commit comments

Comments
 (0)