FredBainbridge

Disable Offline File Sync

Offline file sync can be shut off via the UI in the control panel, but upon inspection using procmon it doesn’t actually appear to shut it off entirely. There are still write happening to c:\windows\csc everytime a network resource is accessed.

OfflineFilesSyncProcMon

[c:\windows\csc\v2.0.6]

I am not sure this caused much of a degredation for the end user experience in general, but with one particular home grown and very legacy application this caused significant performance problems (400-500% slower).

[Offline file sync can be shut off via the UI in the control panel, but upon inspection using procmon it doesn’t actually appear to shut it off entirely. There are still write happening to c:\windows\csc everytime a network resource is accessed.

OfflineFilesSyncProcMon

[c:\windows\csc\v2.0.6]

I am not sure this caused much of a degredation for the end user experience in general, but with one particular home grown and very legacy application this caused significant performance problems (400-500% slower).

Here is the fix. There is a system level driver that needs to be disabled via WMI. This seems to be turned in independently of wether you have offline file sync enabled via the UI.

PowerShell

#Get the current status of the OfflineFilesCache -
Get-WmiObject -class Win32_OfflineFilesCache | fl Enabled

$ClassName = "Win32_OfflineFilesCache"
#Look at the class (this does nothing, but investigate the class and methods)
$Class = Get-CimClass -ClassName $ClassName
$Class.CimClassMethods
$Class.CimClassMethods['Enable'].Parameters

#Do the work
Invoke-CimMethod -ClassName $ClassName -MethodName Enable -Arguments @{Enable=$true; RebootRequired=$reboot}

Reboot the computer for the change to take affect.


Share