jamest23
8/2/2017 - 9:01 AM

Get Hex dump of file

Get-Content "C:\ServiceNow\MID-Server\agent\export\iPark\raw\parking_raw.txt" -Encoding Byte -ReadCount 16 | ForEach-Object {
  $output = ""
  foreach ( $byte in $_ ) {
#BEGIN CALLOUT A
    $output += "{0:X2} " -f $byte
#END CALLOUT A
  }
  $output
}