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 http://blogs.technet.com/filecab/archive/2007/03/21/how-to-synchronize-offline-files-when-you-log-off-of-windows-vista.aspx . 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:
http://blogs.technet.com/filecab/pages/cscsyncall-vbs-sync-the-entire-offline-files-cache.aspx – Sync the entire cache
http://blogs.technet.com/filecab/pages/cscsync-vbs-sync-a-particular-unc-path.aspx – 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.
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 http://blogs.technet.com/filecab/archive/2007/03/21/how-to-synchronize-offline-files-when-you-log-off-of-windows-vista.aspx . 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:
http://blogs.technet.com/filecab/pages/cscsyncall-vbs-sync-the-entire-offline-files-cache.aspx – Sync the entire cache
http://blogs.technet.com/filecab/pages/cscsync-vbs-sync-a-particular-unc-path.aspx – 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
Updated Apr 10, 2019
Version 2.0FileCAB-Team
Iron Contributor
Joined April 10, 2019
Storage at Microsoft
Follow this blog board to get notified when there's new activity