Use PowerShell to find and replace hex values in binary files [duplicate]
问题 This question already has answers here : delete some sequence of bytes in Powershell [duplicate] (1 answer) Methods to hex edit binary files via Powershell (4 answers) Closed 4 months ago . UPDATE: I got a working script to accomplish the task. I needed to batch process a bunch of files so it accepts a csv file formatted as FileName,OriginalHEX,CorrectedHEX. It's very slow even after limiting the search to the first 512 bytes. It could probably be written better and made faster. Thanks for