Skip to content

Commit

Permalink
Fix issue with 1 being displayed instead of True 🏫
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored May 8, 2024
1 parent fe90b8b commit bde9bf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Powershell/Get-TLSRegistryKeys.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Original Author: Mike Kallhoff
Author: Blake Drumm (blakedrumm@microsoft.com)
Website: https://blakedrumm.com/
Modified: April 18th, 2024
Modified: May 7th, 2024
Hosted here: https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/Get-TLSRegistryKeys.ps1
#>
[CmdletBinding()]
Expand Down Expand Up @@ -133,7 +133,7 @@ Function Get-TLSRegistryKeys
@{
n = 'DisabledByDefault'; e = {
$output = ($IsDisabledByDefault).ToString()
if ($output -eq '0')
if ($output -match "0|1")
{
$output.Replace('0', 'False').Replace('1', 'True')
}
Expand All @@ -151,7 +151,7 @@ Function Get-TLSRegistryKeys
@{
n = 'IsEnabled'; e = {
$output = ($IsEnabled).ToString()
if ($output -eq '0')
if ($output -match "0|1")
{
$output.Replace('0', 'False').Replace('1', 'True')
}
Expand Down

0 comments on commit bde9bf6

Please sign in to comment.