
This will display following warning message.

Once you’ve transferred all PuTTY sessions, execute “putty -cleanup” from the command line as shown below. When you are swapping an old computer with a new computer, you may end-up transferring all PuTTY sessions to new computer. PuTTY Trick 1: Delete All PuTTY Sessions Together If you have not used PuTTY earlier and you have heard only about Silly Putty and Mighty Putty and not the PuTTY software, you may want to download PuTTY software from the official PuTTY download page here before exploring these PuTTY tricks. In this article, let us review 10 awesome native PuTTY tips and tricks that you might have not explored earlier. It’s light-weight with a single putty.exe file and nothing else to install.Ī while back we wrote about 12 powerful PuTTY software add-ons and explained how PuTTY connection manager can help you to organize PuTTY SSH sessions in tabs. If ("".GetType().Equals($propval.PuTTY is hands-down the best SSH client for Windows. "Windows Registry Editor Version 5.00" | Out-File putty.reg #$registry_path = "HKCU:\Software\SimonTatham\PuTTY\Sessions" $registry_path = "HKCU:\Software\SimonTatham" # Examine cmd.ps1 to ensure it doesn't do anything nasty Use the below scripts at your own risk, and be prepared to have your IT department re-image your machine and ask you uncomfortable questions about what you were doing. Warning: messing with the registry like this is a Bad Idea™, and I don't really know what I'm doing. reg file and will import cleanly if you have permission, otherwise use import.ps1 to load it. I put together the below powershell scripts for exporting and importing PuTTY settings. When I tried the other solutions I got this error: Registry editing has been disabled by your administrator. Note: These commands will not export the related SSH keys. Note: do not replace SimonTatham with your username.

PowerShell: reg import putty-sessions.reg Alternative ways: cmd.exe, requires elevated command prompt: regedit /i putty-sessions.reg Only sessions (produces file putty-sessions.reg on the Desktop): reg export HKCU\Software\SimonTatham\PuTTY\Sessions (::GetFolderPath("Desktop") + "\putty-sessions.reg")Īll settings except ssh keys (produces file putty.reg on the Desktop): reg export HKCU\Software\SimonTatham (::GetFolderPath("Desktop") + "\putty.reg")ĭouble-click on the *.reg file and accept the import. Only sessions (produces file putty-sessions.reg on the Desktop): regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SessionsĪll settings except ssh keys (produces file putty.reg on the Desktop): regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham

Export cmd.exe, requires elevated prompt due to regedit:
