Microsoft KB Archive/942960

= How to move the client-side caching (CSC) folder to a new location in Windows Vista =

Article ID: 942960

Article Last Modified on 11/21/2007

-

APPLIES TO


 * Windows Vista Enterprise
 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Starter
 * Windows Vista Ultimate
 * Windows Vista Business
 * Windows Vista Home Basic 64-bit Edition
 * Windows Vista Enterprise 64-bit Edition
 * Windows Vista Home Premium 64-bit Edition
 * Windows Vista Ultimate 64-bit Edition
 * Windows Vista Business N 64-bit Edition

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



INTRODUCTION
This article describes how to move the client-side caching (CSC) folder in Windows Vista.



Why you cannot use the Cachemov.exe tool in Windows Vista
The Cachemov.exe tool is not supported in Windows Vista. When you try to use the Cachemov.exe tool to move the client-side caching (CSC) folder in Windows Vista, you may receive the following error message:

cachemov.exe - Ordinal Not Found

The ordinal 51 could not be located in the dynamic link library CSCDLL.dll

Note The CSC folder is the folder in which Windows Vista stores offline files.

The Cachemov.exe tool is used to move the CSC folder on a computer that contains one of the following operating systems:
 * Windows Server 2003
 * Windows XP
 * Windows 2000 Server

How to move the CSC folder in Windows Vista
Typically, the offline files cache is located in the following directory:

%systemroot%\CSC

To move the CSC cache folder to another location in Windows Vista, follow these steps:  Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. Type the following command, and then press ENTER:

REG ADD &quot;HKLM\System\CurrentControlSet\Services\CSC\Parameters&quot; /v MigrationParameters /t REG_DWORD /d 1 /f

 Type the following command, and then press ENTER:



Note You may have to substitute a different drive letter, as appropriate for your situation. In the Windows Easy Transfer Wizard, select the following options:  Click Start a New Transfer. Click My old computer. Click Use a CD, DVD or other removable media.</li> Click External hard disk or to a network location.</li> Type a path where you want to save the Savedata.mig file, and then click Next.</li> Click Advanced options.</li> In the Select user accounts, files, and settings to transfer dialog box, do the following: <ol> Clear all check boxes.</li> Under System and program settings (all users), expand Windows Settings, expand Network and Internet, and then click to select the Offline Files check box.</li> Repeat the previous step for each user who is listed on the page.</li> Click Next to begin the transfer process.</li></ol> </li></ol> </li></ol>

Change the registry settings
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Check the cache size that is used on the computer. To do this, follow these steps:
 * 1) In Control Panel, click Network and Internet, and then click Offline Files.
 * 2) Click the Disk Usage tab in the Offline Files box.

If the cache size is zero, you must change only the registry settings as given in the following list. Or, if the cache size is set to some value, follow all the steps. <ol> Click Start, type regedit in the Search box, and then press ENTER.</li> Locate the following registry subkey, and then right-click it:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CSC

</li> Right-click CSC, point to New, and then click Key.</li> Type Parameters in the name box.</li> Right-click Parameters, point to New, and then click String Value.</li> To name the new value, type CacheLocation, and then press ENTER.</li> Right-click CacheLocation, and then click Modify.</li> <li>In the Value data box, type the name of the new folder in which you want to create the cache.

Note Use the Microsoft Windows NT format for the folder name. For example, if you want the cache location to be d:\csc, type the following:

\??\d:\csc

</li> <li>Exit Registry Editor, and then restart the computer.</li></ol>

Continue the transfer process
<ol> <li>At the elevated command prompt, type the following command, and then press ENTER:

c:\windows\system32\migwiz\migwiz.exe

</li> <li>In the Windows Easy Transfer Wizard, select the following options: <ol style="list-style-type: lower-alpha;"> <li>Click Continue a transfer in progress.</li> <li>Click No, I've copied files and settings to a CD, DVD, or other removable media.</li> <li>Click On an external hard disk or network location.</li> <li>Type the path of the Savedata.mig file that was created in step 4e of the procedure in the &quot;How to move the CSC folder in Windows Vista&quot; section.</li> <li>Map the user account on the old computer to the corresponding user account on the new computer.</li> <li>Click Next, and then click Transfer.</li> <li>Restart the computer.</li></ol> </li></ol>

Delete the old cache
When all the files are moved, delete the old cache from a Windows Vista Release Candidate 1 (RC1) build. To do this, follow these steps: <ol> <li>At the elevated command prompt, type the following command, and then press ENTER:

takeown /r /f c:\windows\csc

</li> <li>At the elevated command prompt, type the following command, and then press ENTER:

rd /s c:\windows\csc

</li></ol>

Note The limitation of this method to delete the old cache is that Takeown.exe can only process paths that do not exceed the MAX_PATH (maximum length of a path). The maximum length of a path is 260 characters. If this path length exceeds the MAX_PATH, the takeown command fails.

<div class="references_section">