Run this utility on a client PC to configure offline files. Offline files (CSC) allow the client PC to access copies of network files while disconnected from the network/domain. Files can be synchronized with the network when connected.
Syntax CSCCMD Option(s) Options: /ENABLE Enable Client-Side Caching (CSC) on this client. Requires Local Administrator rights /DISABLE Disable CSC, ensure all offline files are closed first. /Enum[: \\Server\Share [\Path]] [/RECURSE] Display all the shares in the local cache. With the /RECURSE option, this will display the contents of the shares within a parent share. /DISCONNECT:\\Server /DISCONNECT:\\Server\Share Disconnect a server or share from CSC on this client. /MOVESHARE:\\Server1\Share \\Server2\Share Move files and folders from one share to another in the cache. This is useful if the local cache must point to a new/renamed server location. /RESID Restamp all the entries in the Windows offline files (CSC) database with a new user security identifier (SID). useful when moving user accounts from an NT 4.0 domain to 2003. /ISENABLED Is CSC is enabled on this client PC. (synonym: /ISCSCENABLED) /PIN2:\\server\share\path [/USER] [/SYSTEM] [/USERINHERIT] [/SYSTEMINHERIT] Pin shared resources: Use the PIN2: /USER option to pin a file. This has the same result as using the Offline Files dialog box to cache the file. Use PIN2: /SYSTEM to specify that the share will be pinned via Group Policy. /USERINHERIT and /SYSTEMINHERIT] will determine how the pin data is inherited. /PIN2:filename /FILELIST [/UNICODE] [/USER] [/SYSTEM] [/USERINHERIT] [/SYSTEMINHERIT] Use a file to describe the objects to pin The file contains the UNC path of each object to pin. /FILELIST = the objects are separated by a carriage return/linefeed. /UNPIN2:\\server\share\path [/USER] [/SYSTEM] [/USERINHERIT] [/SYSTEMINHERIT] [/RECURSE] UnPin a shared resource or remove a shared resource from the local cache. with /RECURSE, CSCCMD will unpin all children of the path. with /RECURSE2, CSCCMD will unpin the path and children of the path. /UNPIN2:filename /FILELIST [/UNICODE] [/USER] [/SYSTEM] [/USERINHERIT] [/SYSTEMINHERIT] UnPin specific shared resources listed in filename. /FILELIST = the objects are separated by a carriage return/linefeed. /FILL:\\Server\Share\Path Copy server-side data to the local cache. /FILL:FileName /FILELIST [/UNICODE] Copy server-side data to the local cache using a file. /DELETE:\\Server\Share\Path [/RECURSE] [/RECURSE2] Delete a file, a directory, or a share from the local cache. Ensure that the directory/share is empty before you use this switch. with /RECURSE, CSCCMD tool only operates on the children of the path. with /RECURSE2, CSCCMD operates on the path and children of the path. /ISSERVEROFFLINE:\\Server Does CSC consider \\server to be offline. To get a reliable response from this switch, you must first open a share/file/directory from the local cache for \\server /SETSPACE:Bytes Specify the disk space in bytes to allocate to temporary offline files. These files are nonpinned, auto-cached files. This is similar to the function provided in the Offline Files dialog box. /CHECKDB [/QUICK] Examine the CSC database and display any database error flags. /QUICK will skip the enumeration and just display database errors. /EXTRACT[:\\Server\Share[\Path]] /TARGET:Path [/RECURSE] [/ONLYMODIFIED] [/STOPONERROR] Extract a file, a directory, or a directory tree from the local cache. This requires Local Administrator permissions /TARGET will specify a destination.(which need not already exist) /ONLYMODIFIED, extract only files that have been modified offline. /STOPONERROR, stop the extract if an error occurs.
Offline files are most often used with laptops to provide access to data when on the move. Folder redirection can be setup to place the users My Documents on a server share, and then Offline Files can be set to copy and cache the data to the laptops C: drive.
This arrangement allows faster synchronisation of files than a full roaming profile (which also synchronises other things you probably don’t need on a laptop.)
The /PIN2 switch does not copy the content of the shared resource into the local cache. Pinning is not sufficient to make the files available offline. After you use the /PIN2 switch, you must run CSCCMD /FILL to copy the content of the shared resource to the local cache.
When using FILELIST, any white space at the start of a file is ignored.
With the /UNICODE option, CSCCMD will create or read a file list in Unicode text format.
CSC is available for Windows 2000/XP/2003.
Move a server share:
csccmd /MOVESHARE:\\oldserver\share \\newserver\share
“I think the laptop is very good. It helps us to find some words, like our teacher will teach us... The things we didn't know, we go check on the laptop” - One Laptop per child project, Abuja, Nigeria
Q252509 - PST and MDB files cannot be made available offline.
Q884739 - CSCcmd Version 1.1
mobsync /logon - Synchronization Manager.