CSCcmd – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
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 set up 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 synchronization of files than a full roaming profile (which also synchronizes 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.
1 2 3 4 5 |
Examples Move a server share: csccmd /MOVESHARE:\\oldserver\share \\newserver\share csccmd /RESID |
It’s best to take part in a contest for among the finest blogs on the web. I’ll suggest this website!