from an IRC question : [string]::join('',([byte[]]([regex]::matches("1A3761592352350C7A5F20172F1E1A190E2B017313371312141A1539",'\w{2}') |% {"0x$_"}) |% {$_.tostring('x')})) 1a376159235235c7a5f20172f1e1a19e2b17313371312141a1539 Ok, maybe more useful on