14

I'd like to transfer all of my WinSCP sessions to a new computer. How can I export them from the registry and re-import them on the other machine?

ireardon
  • 303

2 Answers2

18

On the source computer:

On the destination computer:


This all is covered in WinSCP FAQ:
How do I transfer my settings to another computer? How do I import/export my settings?

The FAQ covers even situation, when your source computer is not working, but you at least have an access to its files.

5

All credit for this approach goes to m0nhawk's answer here: https://stackoverflow.com/questions/13023920/how-to-export-import-putty-sessions-list

Note: Do not replace "Martin Prikryl" in the commands below with your name or any other name. Martin Prikryl is the lead developer of WinSCP and all installations of WinSCP use this registry path.

Export with PowerShell

All settings:

reg export "HKCU\Software\Martin Prikryl\WinSCP 2" ([Environment]::GetFolderPath("Desktop") + "\winscp.reg")

Sessions only:

reg export "HKCU\Software\Martin Prikryl\WinSCP 2\Sessions" ([Environment]::GetFolderPath("Desktop") + "\winscp-sessions.reg")

Import with PowerShell

cd to the directory containing your .reg file and then import.

All settings:

reg import winscp.reg

Sessions only:

reg import winscp-sessions.reg

...or, simply double click on a .reg file and accept the prompt to import.

ireardon
  • 303