File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
Original Author: Mike Kallhoff
15
15
Author: Blake Drumm (blakedrumm@microsoft.com)
16
16
Website: https://blakedrumm.com/
17
- Modified: April 18th , 2024
17
+ Modified: May 7th , 2024
18
18
Hosted here: https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/Get-TLSRegistryKeys.ps1
19
19
#>
20
20
[CmdletBinding ()]
@@ -133,7 +133,7 @@ Function Get-TLSRegistryKeys
133
133
@ {
134
134
n = ' DisabledByDefault' ; e = {
135
135
$output = ($IsDisabledByDefault ).ToString()
136
- if ($output -eq ' 0 ' )
136
+ if ($output -match " 0|1 " )
137
137
{
138
138
$output.Replace (' 0' , ' False' ).Replace(' 1' , ' True' )
139
139
}
@@ -151,7 +151,7 @@ Function Get-TLSRegistryKeys
151
151
@ {
152
152
n = ' IsEnabled' ; e = {
153
153
$output = ($IsEnabled ).ToString()
154
- if ($output -eq ' 0 ' )
154
+ if ($output -match " 0|1 " )
155
155
{
156
156
$output.Replace (' 0' , ' False' ).Replace(' 1' , ' True' )
157
157
}
You can’t perform that action at this time.
0 commit comments