Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6d69636b committed Jul 25, 2023
1 parent e8bcd1a commit 368fce6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions HardeningKitty.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@
#
# Start Main
#
$HardeningKittyVersion = "0.9.2-1689427634"
$HardeningKittyVersion = "0.9.2-1690255284"

#
# Log, report and backup file
Expand Down Expand Up @@ -843,6 +843,10 @@
$Result = "-NODATA-"
} Else {
$Result = $Finding.DefaultValue
# Multiline Registry Keys need a semicolon instead of a space
If ($Finding.RegistryItem -eq "Machine") {
$Result = $Result.Replace(";", " ")
}
}
}
}
Expand Down Expand Up @@ -1448,7 +1452,7 @@
# Hardened UNC Paths => Remove spaces in result and recommendation only if result is not null or empty
#
If ($Finding.Method -eq 'Registry' -and $Finding.RegistryItem -eq "Machine") {
$Finding.RecommendedValue = $Finding.RecommendedValue.Replace(";", " ")
# $Finding.RecommendedValue = $Finding.RecommendedValue.Replace(";", " ")
} ElseIf ($Finding.Method -eq 'Registry' -and $Finding.RegistryPath -eq "HKLM:\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths") {
If (![string]::IsNullOrEmpty($Result)) {
$Result = $Result.Replace(" ", "")
Expand Down

0 comments on commit 368fce6

Please sign in to comment.