Home
%3CLINGO-SUB%20id%3D%22lingo-sub-423375%22%20slang%3D%22en-US%22%3ESynchronizing%20Offline%20Files%20from%20the%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-423375%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3EFirst%20published%20on%20TECHNET%20on%20May%2001%2C%202007%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20A%20blog%20reader%20recently%20asked%20us%20how%20to%20synchronize%20Offline%20Files%20from%20the%20command%20prompt%20instead%20of%20from%20the%20Sync%20Center%20as%20described%20in%20a%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Ffilecab%2Farchive%2F2007%2F03%2F21%2Fhow-to-synchronize-offline-files-when-you-log-off-of-windows-vista.aspx%22%20mce_href%3D%22http%3A%2F%2Fblogs.technet.com%2Ffilecab%2Farchive%2F2007%2F03%2F21%2Fhow-to-synchronize-offline-files-when-you-log-off-of-windows-vista.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20previous%20blog%20post%20%3C%2FA%3E%20.%20Good%20question!%20Synchronizing%20Offline%20Files%20from%20the%20command%20line%20is%20performed%20using%20a%20WMI%20script.%26nbsp%3BWe%20have%20published%20two%20example%20scripts%20that%20illustrate%20how%20to%20do%20this.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20The%20scripts%20are%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Ffilecab%2Fpages%2Fcscsyncall-vbs-sync-the-entire-offline-files-cache.aspx%22%20mce_href%3D%22http%3A%2F%2Fblogs.technet.com%2Ffilecab%2Fpages%2Fcscsyncall-vbs-sync-the-entire-offline-files-cache.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20CscSyncAll.vbs%20%3C%2FA%3E%20%E2%80%93%20Sync%20the%20entire%20cache%20%3CBR%20%2F%3E%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Ffilecab%2Fpages%2Fcscsync-vbs-sync-a-particular-unc-path.aspx%22%20mce_href%3D%22http%3A%2F%2Fblogs.technet.com%2Ffilecab%2Fpages%2Fcscsync-vbs-sync-a-particular-unc-path.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20CscSync.vbs%20%3C%2FA%3E%20%E2%80%93%20Sync%20a%20particular%20UNC%20path%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Note%20that%20most%20of%20the%20text%20in%20these%20scripts%20is%20for%20handling%20script%20switches%20and%20formatting%2Freporting%20progress.%20The%20code%20to%20actually%20perform%20the%20sync%20is%20relatively%20little.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E--Jill%20%3CBR%20%2F%3E%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-423375%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TECHNET%20on%20May%2001%2C%202007%20A%20blog%20reader%20recently%20asked%20us%20how%20to%20synchronize%20Offline%20Files%20from%20the%20command%20prompt%20instead%20of%20from%20the%20Sync%20Center%20as%20described%20in%20a%20previous%20blog%20post.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-423375%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eclient%20side%20caching%20csc%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eoffline%20files%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Not applicable
First published on TECHNET on May 01, 2007
A blog reader recently asked us how to synchronize Offline Files from the command prompt instead of from the Sync Center as described in a previous blog post . Good question! Synchronizing Offline Files from the command line is performed using a WMI script. We have published two example scripts that illustrate how to do this.

The scripts are:

CscSyncAll.vbs – Sync the entire cache
CscSync.vbs – Sync a particular UNC path


Note that most of the text in these scripts is for handling script switches and formatting/reporting progress. The code to actually perform the sync is relatively little.

--Jill