大网数据广告活动
启动与系统组件

Move certificate server database and log files

· 52CE 我爱测

Describes how to move a certificate server's database and log files.

This article describes how to move a certificate server's database and log files.

Original KB number:   283193

Important: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry

Move the Certificate Server Database and Log Files

Warning: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Use these steps to change the location of the certificate server database and log files:

  1. Stop the Certificate Services service.

  2. Copy the database files and log files to new location. The default database path is: %SystemRoot%\System32\CertLog

  3. Modify the database paths in the following registry entries to reflect the new path:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\DBDirectory

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\DBLogDirectory

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\DBSystemDirectory

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\DBTempDirectory

  4. Start the Certificate Services service.

  5. Check the Application event log for CertSvc event 26 to verify that the Certificate Services service started successfully. A warning message is displayed if the service does not start successfully. If this occurs, check the syntax of the paths in the registry.

You may need to edit the NTFS permissions to grant Full Control permissions to the System account. By default, the System account and the Administrators and Enterprise Administrators groups have Full Control access for the CertLog folder.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。