Last active
September 14, 2018 14:53
-
-
Save JohnL4/faf1813b843975fae1569bec82a2fd77 to your computer and use it in GitHub Desktop.
sed-like PowerShell command to null out hex codes in registry dumps before diffing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat .\hklm-after-scm-client-but-before-reboot.reg ` | |
| % {$_ -replace '([0-9a-f][0-9a-f](,|$))+','hex-codes'} ` | |
> ..\RegistryHijinks.edited\hklm-after-scm-client-but-before-reboot.reg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment