Capture windows reg_binary registry
@@ -41,7 +41,11 @@ var (
if ($value -ne $null) {
$valueType = $key.GetValueKind($valueName)
if ($valueType.toString() -eq "Binary") {
+ if ($value.length -gt 2048) {
$value = "BinaryValue"
+ } else {
+ $value = [System.BitConverter]::ToString($value).replace("-", "")
+ }
}
$valueTypeName = Get-Type-Name $valueType
$keyName = $key.Name
