File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments