Tag Archives: PuTTY

Backing Up or Migrating PuTTY Settings

WARNING: This post involves playing around with your operating system’s registry. You use this information at your own risk. For other warnings, please see the disclaimer.

 

PuTTY is one of the go-to apps that pretty much every network engineer has in his or her toolbox.  Anyone who uses it frequently tends to customize its settings to make it more personally appealing.

 Of course, it’s also one of the apps that I always – and I do mean always – forget about when I reload an OS, buy a new machine or do anything else that involves changing my user profile.
Fortunately, PuTTY is a rather simple app and backing up and restoring its settings is pretty easy.  It’s just a matter of backing up and restoring a registry key.
Click on “Start”, type “regedit” and hit <ENTER>:
registry editor open.png

Browse to HKEY_LOCAL_MACHINE>SOFTWARE and select the “SimonTatham” key:

HKLM.SW.ST.png

Right-click on the “SimonTatham” key and select Export:

 

HKLM.SW.ST.Right-Click Export.png

 

Browse to your preferred location, type in a name and click “Save”:

Save.png

 

Once you’ve done this, all of the settings for PuTTY are saved in the file which was just exported.  To restore these settings (or apply them for the first time to a new OS install, new profile, new computer, etc.), install PuTTY and then double-click on the file.

When you do that, you’ll get a UAC prompt.  If you accept that, you’ll get this warning:

reg save warning.png

Click on “Yes” and those registry values will be written into your registry.

I hope you found this helpful!

Advertisements

Moving the Offline Folder Cache in Windows (7, 8, 8.1 and 10)

WARNING:  This post involves playing around with your operating system’s registry.  You use this information at your own risk.  For other warnings, please see the disclaimer.

I’m a big fan of Windows’ offline folder caching and have used it on my laptops for over a decade.  One thing I don’t like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  (By default, it’s found at \Windows\CSC).

WARNING:  If this isn’t a FRESH installation of Windows, make sure you have synchronized your offline files.  This procedure will ERASE ALL EXISTING OFFLINE FILES AND FOLDERS!!!

In order to move the cache, follow these steps:

1. Clear the content of your existing cache
Yeah, you have to do this.  And, it’s not a very obvious procedure.  You end up creating a registry key that resets the cache at startup and then deletes itself.  Here’s the command to create the registry key (you can do this at a command prompt):

REG ADD “HKLM\System\CurrentControlSet\Services\CSC\Parameters” /v FormatDatabase /t REG_DWORD /d 1 /f

Once you’ve done this, reboot.

2. Create the folder in the location where you’d like to have your cache
I always like to keep my data separate from my OS by storing it on a different drive (or, at the very least, a different partition).  For this example, I’m using the path X:\Data\Cache

3. Create a new registry value
Open Registry Editor and browse to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CSC\Parameters

This is the same key we modified before.  Notice how there’s no “FormatDatabase” value even though we added it prior to the last reboot.

Right-click on Parameters, hover on New and select String Value:

String Value Key Menu

Name the new string value “CacheLocation”:

CacheLocation

Double-click on CacheLocation and input the path to the new cache location and then click “OK”:

Edit String

Notice the “\??\” in the value.  This is an NT Object Path used by the OS to reference the local path.  (If it was “\??\UNC\, it would be referencing a network path.)  You must use this format.

You’ll see the value populated now in your registry editor:

CacheLocation Populated

4. Reboot
 Once the OS is back up, it should be using the new location.  You can test this by opening the new folder and you should see a folder in there called “v.2.0.6”.  You should get a permission error if you try to open that folder.

I hope you find this useful!  If you see anything wrong, please let me know.

Moving the Offline Folder Cache in Windows 7, Windows 8 and Windows 8.1

WARNING:  This post involves playing around with your operating system’s registry.  You use this information at your own risk.  For other warnings, please see the disclaimer.

I’m a big fan of Windows’ offline folder caching and have used it on my laptops for over a decade.  One thing I don’t like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  (By default, it’s found at \Windows\CSC).

WARNING:  If this isn’t a FRESH installation of Windows, make sure you have synchronized your offline files.  This procedure will ERASE ALL EXISTING OFFLINE FILES AND FOLDERS!!!

In order to move the cache, follow these steps:

1. Clear the content of your existing cache
Yeah, you have to do this.  And, it’s not a very obvious procedure.  You end up creating a registry key that resets the cache at startup and then deletes itself.  Here’s the command to create the registry key (you can do this at a command prompt):

REG ADD “HKLM\System\CurrentControlSet\Services\CSC\Parameters” /v FormatDatabase /t REG_DWORD /d 1 /f

Once you’ve done this, reboot.

2. Create the folder in the location where you’d like to have your cache
I always like to keep my data separate from my OS by storing it on a different drive (or, at the very least, a different partition).  For this example, I’m using the path X:\Data\Cache

3. Create a new registry value
Open Registry Editor and browse to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CSC\Parameters

This is the same key we modified before.  Notice how there’s no “FormatDatabase” value even though we added it prior to the last reboot.

Right-click on Parameters, hover on New and select String Value:

String Value Key Menu

Name the new string value “CacheLocation”:

CacheLocation

Double-click on CacheLocation and input the path to the new cache location and then click “OK”:

Edit String

Notice the “\??\” in the value.  This is an NT Object Path used by the OS to reference the local path.  (If it was “\??\UNC\, it would be referencing a network path.)  You must use this format.

You’ll see the value populated now in your registry editor:

CacheLocation Populated

4. Reboot
 Once the OS is back up, it should be using the new location.  You can test this by opening the new folder and you should see a folder in there called “v.2.0.6”.  You should get a permission error if you try to open that folder.

I hope you find this useful!  If you see anything wrong, please let me know.