Skip to content

Instantly share code, notes, and snippets.

@smoonlee
Created March 26, 2024 18:18
Show Gist options
  • Save smoonlee/802b38d57f04f9d316ea9f5cc7c83fa3 to your computer and use it in GitHub Desktop.
Save smoonlee/802b38d57f04f9d316ea9f5cc7c83fa3 to your computer and use it in GitHub Desktop.
Convert REG_BINARY to Human
# Get the value of a REG_BINARY from the registry
$value = Get-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\Path\To\Your\Key" -Name "ValueName"
# Convert the REG_BINARY value to a readable format
$readableValue = [System.BitConverter]::ToString($value.ValueName)
# Display the readable format
Write-Output $readableValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment