Sorun:
0x80070426 hatası (Hizmet başlatılmadı) — w32tm /config komutu servis durdurulmuşken çalıştırılıyordu.
Yapılan değişiklikler:
net stop w32time satırı, yapılandırma adımından tamamen kaldırıldı.Yerine
net start w32time eklendi , böylece servisin yapılandırma öncesinde çalışır durumda olması sağlandı.
w32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com,0x9" /reliable:NO /update komutu artık servis aktifken çalıştırılıyor, böylece ayar RPC üzerinden servise doğrudan iletilebiliyor.
Yapılandırma tamamlandıktan sonra
net stop w32time + net start w32time komutu eklendi(neden eklendi?) , servisin yeni ayarlarla temiz bir şekilde yeniden başlaması için.
timeout /t 5 /nobreak, w32tm /resync /force ve doğrulama (
w32tm /query /status) adımları değiştirilmeden korundu.
Dual-boot hatırlatma mesajı (UTC_BIOS_Setting.reg) aynen korundu.
Betik artık hatasız çalışıyor, senkronizasyon başarıyla tamamlanıyor ve
w32tm /query /status çıktısında
Source: time.windows.com,0x9 doğru şekilde...
sync_time_windows.bat
Kod: Tümünü seç
@echo off
setlocal enabledelayedexpansion
:: ================================================
:: Windows Time Sync (W32Time) - Corrected Version
:: Target: Windows 11 24H2 (dual-boot with Linux Mint 22.2)
:: ================================================
net session >nul 2>&1
if %errorLevel% neq 0 (
echo Error: This script requires Administrator privileges.
echo Right-click the file and select "Run as administrator".
echo.
echo Press ENTER to exit.
pause>nul
exit /b 1
)
echo ================================================
echo Windows Time Service Reconfiguration
echo ================================================
echo.
echo Ensuring W32Time service is running before configuration...
net start w32time >nul 2>&1
echo Configuring manual peer list (time.windows.com, Client + SpecialPollInterval)...
w32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com,0x9" /reliable:NO /update
echo Restarting W32Time service to apply configuration cleanly...
net stop w32time
net start w32time
echo Waiting for the service to fully initialize...
timeout /t 5 /nobreak >nul
echo Forcing resynchronization...
w32tm /resync /force
echo.
echo ================================================
echo Verification
echo ================================================
w32tm /query /status
echo.
echo ================================================
echo Reminder
echo ================================================
echo If this machine dual-boots with Linux Mint, make sure
echo UTC_BIOS_Setting.reg has been imported and the system
echo has been restarted so the BIOS clock is treated as UTC
echo consistently on both operating systems.
echo.
echo Press ENTER to exit.
pause>nul
Ekran Görüntüleri :
Öncesi : Hata veriyordu...
Sonrası : Hata yok...!!
NOT :
https://www.upload.ee/files/19502350/Si ... r_.7z.html , bağlantısındaki arşivi indirin içindeki bat dosyasının içeriği yukarıdaki ile değiştirin.