You could also use the Format-Hex cmdlet from the PowerShell Community Extensions (http://pscx.codeplex.com).
The function Get-FileHex on this page: http://www.sans.org/windows-security/2010/02/11/powershell-byte-array-hex-convert/ is a more polished version of GetHex1.ps1, with some useful additional arguments
You probably know this, but PoSH 5.0 includes format-hex. Examples:
Format-Hex -path myfile.txt
Get-content myfile.txt | format-hex
$myresult | format-hex
Get answers to questions, share tips, and engage with the IT professional community at myITforum. Are you a data center professional? Join AFCOM for the best data center insights.
Presented by Tyler Chessman
Tuesday, December 8th
Enroll Now and Save 15%
Presented by Chris McNulty
Wednesday, Dceember 16th
Data visualization and business...
View CatalogView Shopping Cart
Sponsored Introduction Continue on to (or wait seconds) ×