![]() "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:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |