Windows XP Method 1
1. In Folder Options, on the Offline Files tab, press CTRL+SHIFT, and then click Delete Files. The following message appears:
The Offline Files cache on the local computer will be re-initialized. Any changes that have not been synchronized with computers on the network will be lost. Any files or folders made available offline will no longer be available offline. A computer restart is required. Do you wish to re-initialize the cache? 2. Click Yes two times to restart the computer. After you have restarted the computer you'll have a nice clean offline files database and you can start again. Supporting KB article here : http://support.microsoft.com/kb/230738 Method 2 To clean out the database and disable offline files, create a reg file with the following contents : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache] "FormatDatabase"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetCache] "Enabled"=dword:00000000 and apply the reg file to the system. After a reboot, the local offline files cache will be empty and offline files will be disabled. The FormatDatabase dword will be automatically deleted after the reboot. To turn offline files on again, create another reg file with the following contents : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache] "FormatDatabase"=dword:0000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetCache] "Enabled"=dword:00000001 Reboot, and offline files will be enabled again
Windows Vista
To reinitialize the Offline Files cache, create the following DWORD registry value with a value of 1 and restart the system.
HKLM\System\CurrentControlSet\Services\CSC\Parameters\FormatDatabase Again, any unsynchronized changes will be lost. In addition, any files and folders pinned by means other than Folder Redirection or Group Policy will no longer be pinned on that client. After the reboot, the FormatDatabase Dword will be gone
© Corelan Consulting BV. All rights reserved. The contents of this page may not be reproduced, redistributed, or republished, in whole or in part, for commercial or non-commercial purposes without prior written permission from Corelan Consulting bv. See our Terms of Use & Privacy Policy (https://www.corelan.be/index.php/legal) for more details.
Subscribe to get the latest posts sent to your email.
Type your email…
Subscribe
Peter Van Eeckhoutte is the founder of Corelan and a globally recognized expert in exploit development and vulnerability research. With over two decades in IT security, he built Corelan into a respected platform for deep technical research, hands-on training, and knowledge sharing. Known for his influential exploit development tutorials, tools, and real-world training, Peter combines a strong research mindset with a passion for education—helping security professionals understand not just how exploits work, but why.
Tags: