Save PuTTY Settings Automatically (with Task Scheduler)
I like to automate everything, including my backups. PuTTY doesn't have a built-in backup method, so we'll export all the settings from the registry. If you are new to the program, click here for a step-by-step guide.
To back up PuTTY sessions, simply run this command in cmd:
regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham
It will save all PuTTY sessions to your desktop in the putty.reg file.
This command does the job, but why don't you automate the process? :)
Let's automate the PuTTY backup process
- Search for "Task Scheduler" in Start Menu and start it
- Select "Action" / "Create Task"
- Select "General", and type "PuTTY Backup" in the "Name" field (Step #2). Tick the Steps #3 and #4.
Note: The "Name" can be anything - Go to the "Triggers" panel, and press the "New" button
- Select "On workstation lock" from the drop-down menu (Step #1) and click "OK" (Step #2)
Note: Feel free to select another option, I prefer to save my PuTTY session on workstation lock - Go to the "Actions" panel, and press the "New" button
- Set these values
- Action: Start a program (Step #1)
- Program/script: regedit (Step #2)
- Add arguments: /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham (Step #3)
- Press OK
- Go to the "Conditions" panel, and untick all options
- Press "OK", and test it by locking your Computer (Windows + L). If it works well, you should see the backup file on your Desktop, called "putty.reg"
- If you need to restore your backup, simply open the "putty.reg" file and accept to add to the registry database. Do not forget to relaunch the PuTTY :)
- It's recommended to backup this file somewhere, I prefer to use Dropbox.
If you have a question, feel free to leave a comment below.
If you found this article useful and would like to show your appreciation, please consider making a small donation via PayPal. Your support will allow me to continue creating valuable content and make my blog even better. Thank you for your contribution!
Comments