Export the key you are about to change
**reg export** writes a .reg text file you can read and diff. Point it at the deepest key that holds the value, because a giant export is slow to review and slow to restore selectively.
New-Item -ItemType Directory C:\RegBackup -Force | Out-Null
reg export "HKLM\SOFTWARE\Vendor\App" C:\RegBackup\app.reg /y