W32time служба времени windows 10

Maintains date and time synchronization on all clients and servers in the network. If this service is stopped, date and time synchronization will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

Default Settings

Startup type: Manual
Display name: Windows Time
Service name: W32Time
Service type: share
Error control: normal
Object: NT AUTHORITY\LocalService
Path: %SystemRoot%\system32\svchost.exe -k LocalService
File: %SystemRoot%\system32\w32time.dll
Registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
Privileges:
  • SeAuditPrivilege
  • SeChangeNotifyPrivilege
  • SeCreateGlobalPrivilege
  • SeSystemTimePrivilege
  • SeImpersonatePrivilege

Default Behavior

Windows Time is a Win32 service. In Windows 10 it is starting only if the user, an application or another service starts it. When the Windows Time service is started, it is running as NT AUTHORITY\LocalService in a shared process of svchost.exe along with other services. If Windows Time fails to start, the failure details are being recorded into Event Log. Then Windows 10 will start up and notify the user that the W32Time service has failed to start due to the error.

Restore Default Startup Configuration of Windows Time

1. Run the Command Prompt as an administrator.

2. Copy the command below, paste it into the command window and press ENTER:

sc config W32Time start= demand

3. Close the command window and restart the computer.

The W32Time service is using the w32time.dll file that is located in the C:\Windows\system32 directory. If the file is removed or corrupted, read this article to restore its original version from Windows 10 installation media.

Вы можете столкнуться с ошибкой синхронизации времени в Windows, когда ваш компьютер не может автоматически синхронизировать свое время с серверами времени time.microsoft.com в Интернете. Из-за некорректного времени на компьютере у вас может возникать ошибка «
Your clock is ahead/ Ваши Часы спешат (отстают)
» при открытии HTTPS сайтов Chrome (и в других браузерах), не корректно работать сторонние программы, и появляться различные другие неприятности.

Если попытаться вручную выполнить синхронизацию времени из панели управления Windows (Control Panel -> Date and Time -> Internet Time -> Change Settings -> Update now), появляется ошибка:

An error occurred while windows was synchronizing with time.windows.com. The peer is unreachable.

Также здесь может быть ошибка:

The peer is unresolved.

ошибка синхронизации времени с интернетом в windows

Проверьте, что у вас настроена автоматическая синхронизация времени с NTP серверами в Интернете. Перейдите в раздел Settings -> Time and Language -> Date and Time (можно перейти в этот раздел с помощью команды быстрого доступа по URI:
ms-settings:dateandtime
). Проверьте, что здесь включена опцию Set time automatically и выполните синхронизацию, нажав кнопку Sync now в разделе Additional settings.

включить синхронизацию времени

Если синхронизация времени с Интернетом не работает, проверьте, с какого внешнего NTP сервера должен получить время ваш компьютер. Выполните команду:

w32tm /query /peers

w32tm /query /peers вывести источник времени

По умолчанию компьютеры в рабочих группах (не присоединенные к домену Active Directory) настроены на получение времени с серверов time.windows.com.

Если при запуске этой команды появилась ошибка “The following error occurred: The service has not been started. (0x80070426)”, проверьте состояние службы Windows Time. Она должна быть настроена на автоматический или ручной запуск. Можете проверить состояние службы с помощью PowerShell или консоли services.msc:

Get-Service w32time| Select DisplayName,Status, ServiceName,StartType

Перезапустите службу:

Restart-Service -Name w32time

Если служба отключена, включите ее.

проверить службу времени в Windows (w32time)

Проверьте, что с вашего компьютера доступен хост time.microsoft.com.

Сначала проверьте, что ваш компьютер может разрешить это имя в IP адрес:

nslookup time.windows.com

Если ваш компьютер не может отрезолвить это имя в IP адрес (ошибка синхронизации времени The peer is unresolved), значит в настройках сетевого адаптера вашего компьютера указан DNS сервер, который не доступен, или изолирован от интернета. Попробуйте сменить адрес первичного DNS сервера на DNS сервер Google (8.8.8.8). Можно изменить настройки DNS для сетевого адаптера в Windows с помощью PowerShell.

Вывести список сетевых интерфейсов:

Get-NetAdapter

вывести сетевые интерфейсы компьютера

Изменить настройки DNS для сетевого адаптера с ifIndex 10:

Set-DNSClientServerAddress –InterfaceIndex 10 –ServerAddresses 8.8.8.8

Проверьте доступность сервера с помощью ping:

ping time.windows.com

И затем проверьте, что сервер времени Microsoft доступен по порту NTP (UDP 123). Для проверки доступности UDP порта можно использовать утилиту portquery или можно напрямую обратиться к серверу и запросить у него текущее время:

w32tm /stripchart /computer:time.windows.com

w32tm /stripchart - проверить время на внешнем NTP сервере

Если команда вернет ошибку error: 0x800705B4, значить указанный NTP сервер не доступен. Проверьте, что в Windows открыт исходящий порт UDP/123 для протокола NTP (по умолчанию порт должен быть открыт). Вы можете принудительно открыть порт в Windows Defender Firewall с помощью PowerShell:

New-NetFirewallRule -DisplayName "AllowOutNTP" -Direction Outbound -Protocol UDP -RemotePort 123 -Action Allow
Enable-NetFirewallRule -DisplayName AllowOutNTP

Также убедитесь, что исходящий NTP трафик не блокируется на сетевом уровне (провайдера, вашего файервола или другими сетевыми устройствами).

Если этот NTP сервер не доступен, вы можете использовать другой NTP сервер.

Можно указать
time.nist.gov
или ближайший к вам NTP сервер, который можно получить на сайте
https://www.ntppool.org
.

Можно изменить адрес вашего NTP сервера с помощью командной строки:

w32tm /config /manualpeerlist:time.nist.gov,0x1 /syncfromflags:manual /reliable:yes /update

Перезапустите службу времени (в данном примере вы запустим несколько команд в одну строку):

net stop w32time && net start w32time

Затем выполните синхронизацию времени:

w32tm /config /update
w32tm /resync

Проверьте, что ваш компьютер успешно получил время с нового источника времени (NTP сервера):

w32tm /query /status

w32tm /query /status - проверить синхронизацию времени

Если ничего не помогло, попробуйте полностью сбросить настройки службы Windows Time:

net stop w32time
w32tm /unregister
w32tm /register
net start w32time

Выполните синхронизацию времени:

w32tm /resync

Также вы можете добавить NTP сервер в список серверов времени и выполнить синхронизацию из панели управления Windows. Перейдите в Settings -> Time & language -> Date & time -> Additional clocks –> Internet Time

Убедитесь, что включена опцию Synchronize with an Internet time, добавьте новый сервер time.nist.gov и нажмите кнопку Update Now.

Вы можете добавить NTP сервера в этот список через реестр HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers.

ntp сервера в реестра windows

Для автоматической синхронизации времени в Windows используется отдельно задание в планировщике Task Scheduler. Запустите консоль taskschd.msc и перейдите в раздел Task Scheduler (Local) -> Task Scheduler Library -> Microsoft -> Windows -> Time Synchronization. Проверьте, что задание SynchronizeTime включено.

Также вы можете проверить состояние задания Task Scheduler с помощью PowerShell:

Get-ScheduledTask SynchronizeTime

Чтобы включить его:

Get-ScheduledTask SynchronizeTime|Enable-ScheduledTask

The other day I got a client asking for help syncing time across all Windows 10 thin clients with their NTP server. After taking a walk around NYC and witnessing many hanging shoes I refreshed my head I found a useful way to check Windows NTP configuration using the command prompt.

Using w32tm To Check and configure NTP using the Command Prompt

In Windows 10 open your command prompt and type the below command to check your current NTP configuration:

w32tm /query /configuration

The above gives you the current time configuration.

w32tm /query /status

The above shows you many more details, such as: stratum, precision, last sync, NTP server and etc..

time /T

This last one shows the current time.

At some Windows10 machines I got the below error:

The following error occurred: The service has not been started. (0x80070426)

This means the time service has is not running or disabled. I made sure to enabled accordingly either using the command prompt:

net start w32time

or at the services window when the above did not work:

Windows NTP Configuration services

Windows Time Services
Windows NTP Configuration Using The Command Prompt

Windows Time Services Properties

There’s also a way to set and start Windows NTP configuration using the command prompt this way:

w32tm /config /manualpeerlist:10.0.0.5 /syncfromflags:manual /reliable:yes /update

Then, as usual Windows stays problematic. I had to run the below commands in sequence:

w32tm /unregister
w32tm /register
net start w32time

I did all these because I found out by running:

net time /querysntp

I got the deprecated error:

The /QUERYSNTP and /SETSNTP options have been deprecated. Please use w32tm.exe to configure the Windows Time Service.

At the end of the config you might need to run:

w32tm /config /update
w32tm /resync /rediscover

To make Windows 10 rediscover its NTP settings. Play around, research the official Windows documentation. You can also place all these command on a batch file and deploy it to all your clients.

Good luck! Contact me if you have any questions. Remember to check out my IT Handyman shop for cool T-Shirts and coffee mugs I designed once in a while.

Download Windows Speedup Tool to fix errors and make PC run faster

By default Windows 11/10/8/7 syncs your system time with Internet servers on a weekly basis. If you want to manually sync and update your system time with an Internet Time server like time.windows,com, you have to right-click on the Time in the taskbar > Adjust Time & date > Additional clocks >  Internet Time tab > Change settings > Update now.

change Internet Time Update interval

But what if you want to sync your time automatically, with the servers more frequently – like say daily? You may have your reasons for wanting to change this to daily – or even on a monthly basis! Let us see how you can do it. Before we proceed, let’s learn a few things about how Time synchronization works on Windows.

Windows Time Service – W32Time.exe

The Windows Time Service or W32Time.exe maintains date and time synchronization on all clients and servers in the network. If this service is stopped, date and time synchronization will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start.

Many Registry entries for the Windows Time service are the same as the Group Policy setting of the same name. The Group Policy settings correspond to the registry entries of the same name located in:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\

Windows Time Service Tool – W32tm.exe

W32tm.exe or the Windows Time Service Tool can be used to configure Windows Time Service settings. It can also be used to diagnose problems with the time service. W32tm.exe is the preferred command-line tool for configuring, monitoring, or troubleshooting the Windows Time service. TechNet throws more light on this.

To use this tool, you will have to open an elevated command prompt, type W32tm /? and hit Enter to get the list of all its parameters. When w32tm /resync is run, it tells the computer to synchronize its clock right away. When I ran this command I received the following error: The service has not been started. So the Windows Time service has to be started for this to work.

1] Using  Task Scheduler

sync-time-daily-windows-8

Now if you were to create a task using the Task Scheduler, to run the Windows Time Service and this sync command on a daily basis, as a Local Service with the highest privileges, you would be able to make your Windows computer synchronize your system time every day.

You will have to open the Task Scheduler and navigate to Task Scheduler Library > Microsoft > Windows > Time Synchronization. Now you will have to click on the Create Task… link to create the task. This post will tell you in detail how to schedule a task using Task Scheduler.

Under Actions, you would have to choose Start a program %windir%\system32\sc.exe with arguments start w32time task_started. This will ensure that the Windows Time service is running. You may then set the second action to Start a program %windir%\system32\w32tm.exe with the argument  /resync. The other settings you may choose as per your personal preferences.

TIP: You can also change Time Zone with tzutil.exe.

2] Using Registry Editor

You can also see if this works for you. Open Windows Registry Editor and navigate to the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\Services\W32Time\TimeProviders\NtpClient

Select SpecialPollInterval.

This SpecialPollInterval entry specifies the special poll interval in seconds for manual peers. When the SpecialInterval 0x1 flag is enabled, W32Time uses this poll interval instead of a poll interval determined by the operating system. The default value on domain members is 3600.

Change Internet Time Update interval

The default value on stand-alone clients and servers is 604,800. 604800 seconds is 7 days. So you may change this decimal value to 86400 to make it sync every 24 hours.

NOTE/UPDATE: OldFuddyDuddy adds below in the comments:

A much simpler and more robust registry change is to modify value of UpdateInterval:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\UpdateInterval

Change Windows Internet Time Update Interval

UdateInterval specifies the number of clock ticks between phase correction adjustments. The default value for domain controllers is 100. The default value for domain members is 30,000. The default value for stand-alone clients and servers is 360,000.

There is also the easy way out!

This freeware tool from DougKnox.com lets you change the Internet Time Update interval from Weekly to Daily or Hourly.

time update tool

You will have to run the tool as an administrator.

Read: Check the accuracy of your system clock.

This post will help you if your Time Synchronization fails with the error – Windows Time Service not working.

Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP (2006-16) & a Windows Insider MVP (2016-2022). Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.

Reader Interactions

Encountered the “Windows Time service is missing” or the “Windows Time service not starting automatically” issue in Windows 10/11? In this post from MiniTool, we will show you how to restore the Windows Time service.

The Windows Time service (Win32Time) is an important Microsoft Windows service used to keep the date and time synchronized on all clients and servers in the network. If the Windows Time service not starting automatically or is missing, the date and time synchronization will be unavailable. This problem is not uncommon, and here is a true example.

I have Windows 10 Pro installed on my PC. After the last update, I have a problem with the time as it changes continuously either after startup or while using the PC. Searching online, I noticed that Windows Time is missing from the list of my services. What should I do?superuser.com

Next, we will guide you on how to restore the Windows Time service.

How to Restore the Missing Windows Time Service

Before performing the following steps, it is suggested to attempt some basic troubleshooting, such as restarting your computer and updating Windows to the latest version. If the “Windows Time service missing” problem persists, try the advanced solutions below.

Way 1. Change the Time Server

The disappearance of the Windows Time service may be related to the problem of the time server. So, you can try to change a time server to check if the issue can be fixed.

Step 1. Open the Control Panel by using the Windows search box.

Step 2. In Control Panel, click Date and Time.

Step 3. Move on to the Internet Time section, then click the Change settings button.

change internet time settings

Step 4. Change another time server from the drop-down menu and then click the Update Now button.

update the changed time server

Step 5. Finally, click the OK button to save your changes.

After this operation, you can open Windows Services to check if the missing Windows Time service is restored.

Way 2. Re-Register the Windows Time Service

Re-registering Win32Time is also an effective way to restore the missing Windows Time service. Follow the guide below to complete the necessary actions.

Step 1. Type cmd in the Windows search box and right-click the Command Prompt result to select Run as administrator.

Step 2. When the UAC window appears, select the Yes button.

Step 3. In the Command Prompt window, type net stop w32time and press Enter to execute this command. After executing this command, the Windows Time service will be stopped.

stop the Windows Time service

Step 4. Type the following command lines in sequence. And press Enter after each command.

  • w32tm /unregister
  • w32tm /register
  • net start w32time

Once all command lines are executed, restart your computer and check if the “Windows Time service is missing” issue has been resolved.

Way 3. Enable Time Synchronization Tasks

If the Time Synchronization tasks are disabled, you may find that the Windows Time service is missing. To restore the missing Windows Time service, follow the instructions below to enable the Time Synchronization tasks.

Step 1. Type Task Scheduler in the Windows search box and select it from the best match result.

Step 2. Expand the Task Scheduler Library folder and navigate to Microsoft > Windows > Time Synchronization.

Step 3. Check if the Time Synchronization tasks are disabled. If yes, right-click each task to select Enable.

enable the Time Synchronization task

Make sure all tasks are enabled. Then exit Task Scheduler and restart your computer to check if the missing Windows Time service is back.

Way 4. Perform a DISM and SFC Scan

Corrupted system files can trigger the “Windows Time service missing” issue as well. In this situation, you can use the System File Checker tool to repair missing or corrupted system files.

Step 1. Open the Command Prompt as administrator by using the Windows search box.

Step 2. In the command line window, type DISM.exe /Online /Cleanup-image /Restorehealth and press Enter.

run DISM

Step 3. Wait for the process to complete, then type sfc /scannow and press Enter.

Top Recommendation

Corrupted system files not only can cause the Windows Time service missing issue, but also can lead to data loss issues, such as Windows deleting files automatically, files getting deleted when left-clicking, and so on.

In such situations, you can use MiniTool Power Data Recovery, the best free data recovery software to recover deleted files. MiniTool Power Data Recovery supports recovering documents, pictures, videos, audio, etc. from computer hard drives, USB flash drives, SD cards, and other file storage devices.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

Bottom Line

This article explains what should you do when the Windows Time service is missing. Just try to change the time server, re-register the Windows Time service, enable Time Synchronization tasks, and perform a DISM/SFC scan.

Should you have any questions, do not hesitate to leave your comments below or send an email to [email protected].

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как обновить драйвера аудиокарты windows 11
  • Видеокарта не определяется в диспетчере устройств windows 10
  • 2d image to stl converter windows
  • Наушники с микрофоном не работает микрофон windows 10
  • Как создать пользователя в windows 10 из командной строки