Created
March 26, 2024 18:18
-
-
Save smoonlee/802b38d57f04f9d316ea9f5cc7c83fa3 to your computer and use it in GitHub Desktop.
Convert REG_BINARY to Human
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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