Skip to content

Instantly share code, notes, and snippets.

@Graham-Beer
Created December 10, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Graham-Beer/a7f69373818a51a8df6e4886ec4f67ac to your computer and use it in GitHub Desktop.
Save Graham-Beer/a7f69373818a51a8df6e4886ec4f67ac to your computer and use it in GitHub Desktop.
Convert binary to text
function Get-BinaryToText {
param (
[Parameter(ValueFromPipeline)]
[String] $string
)
process {
($string -split ' ' |
ForEach-Object {
[char](
[convert]::ToInt32($_, 2)
)
}) -join ''
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment