Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows

Khắc phục lỗi "An error occurred while trying to configure this machine as a Domain Controller"

Lỗi An error occurred while trying to configure this machine as a Domain Controller thường xảy ra khi nâng cấp máy thành Domain Controller. Bài viết đưa ra giải pháp phù hợp.

Khắc phục lỗi  An error occurred while trying to configure this machine as a Domain Controller

Khắc phục lỗi Domain Controller promotion

  1. Khởi động lại Server
  2. Dùng dsa.msc snap-in trên Domain Controller hiện có

1] Khởi động lại Server

Giải pháp nhanh nhất: restart đầy đủ server machine như client. Sau boot xong, thử DC promotion lại. Nếu vẫn lỗi, làm cách 2.

2] Xóa tài khoản máy chủ thất bại

  • Mở Active Directory Users and Computers (dsa.msc) snap-in
  • Click Computers bên trái
  • Bên phải: chuột phải failed server (joined as member server) → Delete. Sẽ hội tụ AD replication
  • Chạy sysdm.cpl trên server thất bại, xóa khỏi domain buộc
  • Gỡ role AD DS
  • Reboot → cài lại AD DS server role

Thử promote lại máy thành Domain Controller dùng credential dạng domain\user.

Ghi chú thêm

Bảng dưới (nguồn Microsoft) liệt kê built-in logs quan trọng để troubleshoot DC promotion/demotion:

BUILT-IN LOGS FOR TROUBLESHOOTING
PhaseLog
Server Manager or ADDSDeployment PowerShell%systemroot%\debug\dcpromoui.log, %systemroot%\debug\dcpromoui*.log
Installation/Promotion DC%systemroot%\debug\dcpromo.log, %systemroot%\debug\dcpromo*.log, Event Viewer\Windows logs\System, Application, Directory Service, File Replication Service, DFS Replication
Forest or domain upgrade%systemroot%\debug\adprep\adprep.log, csv.log, dspecup.log, ldif.log*
Server Manager ADDSDeployment PowerShell engineEvent Viewer\Applications and services logs\Microsoft\Windows\DirectoryServices-Deployment\Operational
Windows Servicing%systemroot%\Logs\CBS\*, %systemroot%\servicing\sessions\sessions.xml, %systemroot%\winsxs\poqexec.log, %systemroot%\winsxs\pending.xml

Công cụ troubleshoot:

  • Dcdiag.exe
  • Repadmin.exe
  • AutoRuns.exe
  • Task Manager
  • MSInfo32.exe
  • Network Monitor 3.4 (hoặc tool capture mạng thứ 3)

Hy vọng hữu ích!

Đọc tiếp: Windows Server treo ở Applying Computer Settings screen.