Method one: use registry entry
- Open up registry editor (WARNING: Only for Advanced Users)
- Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc
- Add a new key (folder) called Parameters
- Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters, add a new DWORD called FormatDatabase and set its value to 1
- You will need to reboot the PC afterwards.
Method two: clear the CSC folder
- Located to C:\Windows\CSC
- To access this folder, you need take ownership firstly.
- Right-click CSC folder that you want to take ownership of, and then click Properties.
- Click the Security tab, click Advanced, and then click the Owner tab.
- Click Edit. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
- Click the name of the person you want to give ownership to.
- .If you want that person to be the owner of files and subfolders in this folder, select the Replace owner on subcontainers and objects check box.
- Click OK.
- Then clear all content in this folder.
Offline files and DFS where the CSC needs to be cleared (4.)
REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v FormatDatabase /t REG_DWORD /d 1 /f