You can backup you registry keys, using export key cmd
regedit /e c:\output.reg "HKEY_LOCAL_MACHINE\System\YourLocation"

you can make a bat file with script