Function Convert_To_Hex ($Hex_01) { $Hex = $Hex_01.ToUpper() -Replace '(..)', '0x$1, ' Write-Host $Hex } Convert_To_Hex 87ceeb # Output: 0x87, 0xCE, 0xEB,
Select allOpen in new window