Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Last active September 14, 2018 14:53
Show Gist options
  • Save JohnL4/faf1813b843975fae1569bec82a2fd77 to your computer and use it in GitHub Desktop.
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
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