Computer >> Hướng Dẫn Máy Tính >  >> Xử Lý Sự Cố >> Lỗi Windows

Cách khắc phục lỗi "The Computer did not Resync because no Time Data was Available" trên Windows

Lỗi này xuất hiện khi đồng bộ thời gian trên máy chủ Microsoft Windows Server với nguồn thời gian bên ngoài. Đồng bộ bao gồm chạy lệnh 'w32tm /resync' trên máy domain hoặc client.

Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Thông báo lỗi không có dữ liệu thời gian để resync

Có nhiều cách khắc phục qua các năm. Chúng tôi tổng hợp các phương pháp tốt nhất trong bài này.

Nguyên nhân lỗi "The Computer did not Resync because no Time Data was Available"

  • Group Policy cấu hình sai – Một số chính sách Windows Time Service cần điều chỉnh.
  • Tham số Windows Time Service sai – Thay đổi tham số trong registry của Windows Time Service.
  • Vấn đề chung với Windows Time Service – Chạy lệnh hoặc restart dịch vụ.

Giải pháp 1: Thay đổi Group Policies (Khuyên dùng bởi Microsoft)

Phương pháp chính được chuyên gia Microsoft khuyến nghị, đã giúp nhiều người khắc phục. Quy trình khác nhau tùy bạn đang xử lý trên Domain Controller hay Local Computer.

Đối với Domain Controller:

  1. Win+R → gõ dsa.msc → Enter (Active Directory Users and Computers MMC).
  2. Chuột phải container chứa Group Policy object cần sửa → Properties.
  3. Cửa sổ "Container Name Properties" → Tab Group Policy → Chọn object → Edit.
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Mở Group Policy Management trên Domain Controller

Đối với Local Computer:

  • Win+R → gõ gpedit.msc → Enter (Local Group Policy Editor).
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Mở Local Group Policy Editor (gpedit.msc)

Các bước tiếp theo giống nhau cho cả hai trường hợp:

  1. Trong Local Group Policy Editor, bên trái: Computer Configuration → Administrative Templates → System → Windows Time Service.
  2. Chọn thư mục Windows Time Service → Xem bên phải.
  3. Double-click Global Configuration Settings → Chọn radio Not Configured.
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Đặt Global Configuration Settings = Not Configured
  1. Mở rộng thư mục Windows Time Service → Chọn key Time Providers. Bên trong có 3 key: Configure Windows NTP Client, Enable Windows NTP Client, Enable Windows NTP Server.
  2. Double-click từng key → Đặt radio button = Not Configured.
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Đặt 3 Time Providers = Not Configured
  1. Apply thay đổi → Thoát. Thay đổi có hiệu lực sau khi restart.
  2. Restart máy → Kiểm tra lỗi.

Giải pháp 2: Chỉnh sửa Registry Keys

Chỉnh sửa key registry cụ thể giúp kết nối đúng time server. Thực hiện trên máy chủ (host) của workgroup/homegroup/mạng tập trung. Cẩn thận khi sửa registry.

  1. Khuyến nghị backup registry trước (xem bài hướng dẫn backup registry an toàn). Nếu làm đúng bước dưới thì an toàn.
  2. Mở Registry Editor: gõ regedit trong Search/Run/Start → Điều hướng đến key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
  3. Click key này → Tìm entry Type. Nếu không có → Chuột phải bên phải → New > String Value → Tên Type → Chuột phải → Modify.
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Tạo giá trị Type mới hoặc sửa giá trị hiện có
  1. Cửa sổ Edit: Value data = NT5DS → OK. Xác nhận các hộp thoại bảo mật nếu có.
  2. Restart máy thủ công (Start → Power → Restart) → Kiểm tra lỗi. Thường khắc phục ngay lập tức.

Giải pháp 3: Chạy lệnh Windows Time Service

Lệnh w32tm nâng cao giúp kết nối đúng server time.windows.com.

  1. Tìm "Command Prompt" trong Start → Chuột phải → Run as administrator.
  2. (Windows cũ: Win+R → cmd → Ctrl+Shift+Enter để chạy Admin).
  3. Copy lệnh sau, dán vào CMD và nhấn Enter:
    w32tm /config /manualpeerlist:time.windows.com,0x1 /syncfromflags:manual /reliable:yes /update
  4. Kiểm tra lại bằng lệnh w32tm /resync xem lỗi còn không.
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Chạy lệnh w32tm cấu hình thủ công peer time server

Giải pháp 4: Restart Windows Time Service

Restart dịch vụ sẽ khởi động lại quy trình, khắc phục nếu lỗi do bug tạm thời.

  1. Win+R → services.msc → Enter (Services tool).
  2. Tìm Windows Time Service → Chuột phải → Properties.
  3. Nếu dịch vụ đang chạy (xem Service status) → Nhấn Stop → Sau đó nhấn Start.
  4. Đảm bảo Startup type = Automatic → Apply/OK.
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Dịch vụ Windows Time trong Services.msc
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Stop rồi Start lại dịch vụ, đặt Startup type = Automatic

Lỗi có thể gặp khi nhấn Start:

"Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process."

Nếu gặp lỗi này, làm theo:

  1. Làm lại bước 1-3 để mở Properties dịch vụ → Tab Log On → Nhấn Browse....
Cách khắc phục lỗi  The Computer did not Resync because no Time Data was Available  trên Windows
Thay đổi tài khoản đăng nhập dịch vụ
  1. Ô "Enter the object name to select": Gõ tên tài khoản của bạn → Check Names → Đợi tên khả dụng → OK.
  2. Nhập mật khẩu ở ô Password nếu có → OK. Dịch vụ sẽ khởi động bình thường.