W32tm отказано в доступе 0x80070005 windows 7

Инструкция по устранению ошибки '1290' в системном журнале Windows - w32tm /resync Access is denied. (0x80070005)

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

Получаю:

System error 1290 has occurred. The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the service SID type for this service was just configured, the hosting process must be restarted in order to start this service.

Выносим службу в отдельный процесс:

sc config w32time type= own

Должны получить [SC] ChangeServiceConfig SUCCESS

После чего служба запускается, но при этом начинает ругается dcdiag.

Invalid service type: w32time on DCSERVER, current value WIN32_OWN_PROCESS, expected value
WIN32_SHARE_PROCESS

При попытке выполнить любой запрос, например w32tm /query /status вываливается ошибка закрытого доступа.

w32tm /query /status Access is denied. (0x80070005)

Решение оказалось нетривиальным:

net stop w32time
w32tm /unregister
regsvr32 /u w32time.dll
w32tm /register

Перезапустим сервер. После убедимся, что сервис снова установлен в расшаренном режиме, наберем:

В ответ должны получить WIN32_OWN_PROCESS:

SERVICE_NAME: w32time
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 1 STOPPED
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

После чего, снова перезапускаем сервер, и запускаем команду

Убедимся что служба запущена:

SERVICE_NAME: w32time
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

Затем как обычно, настраиваем контроллер на получение времени из внешних источников:

w32tm /config /manualpeerlist:"ntp1.stratum2.ru,0x8 ntp2.stratum2.ru,0x8 ntp3.stratum2.ru,0x8″ /syncfromflags:manual /reliable:yes /update

Внесем изменения в конфигурацию:

Выполним синхронизацию командой:

w32tm /resync /rediscover

Отобразить текущие источники синхронизации и их статус можно следующей командой:

Статус синхронизации контроллеров домена в домене:

  • Remove From My Forums
  • Question

  • I am in the process of decomissioning the 2008 DC so I have moved all FSMO roles to another DC. The old DC is getting time from the newly promoted PDC as are the domain clients it seems.

    I have gone through this below more times than I should have needed, the info is clear and it seems to work. however I still get an error from an elevated cmd prompt.

    C:WindowsSystem32>w32tm /query /status

    or

    C:WindowsSystem32>w32tm /query /configuration

    The following error occurred: Access is denied. (0x80070005)

    pushd %SystemRoot%system32
    .net stop w32time
    .w32tm /unregister
    .w32tm /register
    .sc config w32time type= own
    .net start w32time
    .w32tm /config
    /update /manualpeerlist:«0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org»,0x8
    /syncfromflags:MANUAL
    /reliable:yes
    .w32tm /resync
    popd

    Why am I not able to run a query on the PDC with an elevated cmd prompt and I do have domain rights in all the right areas! I have never had this problem before.


    Thanks, Charlie

    • Edited by

      Thursday, May 16, 2013 9:38 PM

Answers

  • Did you try running a sfc /scannow?

    Also I would try exporting the win32tm reg key from a working computer and importing it. HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesW32Time


    http://mariusene.wordpress.com/

    I can run w32tm /query /status on another DC and it is getting time from the PDC in question. By copying the key from the working DC to the one with the problem I would then need to manually edit the time servers and set other key as needed, about 5 of them
    if I recall then bounce the server. Heck for that matter I’d also replace the 3 w32* files in system32.

    What do you think?


    Thanks, Charlie

    • Proposed as answer by
      Jason Mei
      Wednesday, June 19, 2013 11:54 AM
    • Marked as answer by
      Vivian_Wang
      Thursday, June 20, 2013 4:07 AM
    • Unmarked as answer by
      CJlindell
      Thursday, June 20, 2013 3:45 PM
    • Marked as answer by
      Hamid Sadeghpour SalehMVP
      Thursday, January 30, 2020 10:40 AM

Hi,

we have at this moment mixed OS of Domain Controller:

— Windows Server 2016 (W2K16)

— Windows Server 2008 R2 (W2K8R2)

All FSMO roles are on W2K16 DCs.

We have a Time Service issue on W2K8R2 DCs for a few days.

First, we have seen that «Time Service» (w32tm) were no any more existing on DCs. 

PS> w32tm /resync
The following error occurred: The specified service does not exist as an installed service. (0x80070424)

We could register Time Service:

PS> w32tm /register
W32Time successfully registered.

But if we tried to start w32time we got following error:

PS> net start w32time
System error 1290 has occurred.
The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the
service SID type  for this service was just configured, the hosting process must be restarted in order to start this service.

Afterwards we run the following command:
PS>sc config w32time type= own
[SC] ChangeServiceConfig SUCCESS

Then we could start w32time.

We checked also im Event Viewer time snyc of W2K8R2 DCs with PDC Emulator. All worked well.  

BUT, if we run time resync manually in elovated command, then we get error:

PS> w32tm /resync
Sending resync command to local computer
The following error occurred: Access is denied. (0x80070005)

The same is also, if we want to unregister w32tm:

PS> w32tm /resync
The following error occurred: Access is denied. (0x80070005)

I debugged time service on problem DCs. All sync works well.

Any idea?

Best regards

Birdal

Hi,

we have at this moment mixed OS of Domain Controller:

— Windows Server 2016 (W2K16)

— Windows Server 2008 R2 (W2K8R2)

All FSMO roles are on W2K16 DCs.

We have a Time Service issue on W2K8R2 DCs for a few days.

First, we have seen that «Time Service» (w32tm) were no any more existing on DCs. 

PS> w32tm /resync
The following error occurred: The specified service does not exist as an installed service. (0x80070424)

We could register Time Service:

PS> w32tm /register
W32Time successfully registered.

But if we tried to start w32time we got following error:

PS> net start w32time
System error 1290 has occurred.
The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the
service SID type  for this service was just configured, the hosting process must be restarted in order to start this service.

Afterwards we run the following command:
PS>sc config w32time type= own
[SC] ChangeServiceConfig SUCCESS

Then we could start w32time.

We checked also im Event Viewer time snyc of W2K8R2 DCs with PDC Emulator. All worked well.  

BUT, if we run time resync manually in elovated command, then we get error:

PS> w32tm /resync
Sending resync command to local computer
The following error occurred: Access is denied. (0x80070005)

The same is also, if we want to unregister w32tm:

PS> w32tm /resync
The following error occurred: Access is denied. (0x80070005)

I debugged time service on problem DCs. All sync works well.

Any idea?

Best regards

Birdal

I am in the middle of moving roles to another DC. I have moved all fsmo roles to the new DC and registered time on it and once I have gone through the commands I get this on the DC.

C:>w32tm /resync /rediscover
Sending resync command to local computer
The following error occurred: Access is denied. (0x80070005
)

results from w32tm /monitor

C:>w32tm /monitor
Data2.xxx.local[170.229.11.10:123]:
    ICMP: 0ms delay
    NTP: +0.1138806s offset from DCSERVER.xxx.local
        RefID: DCSERVER.xxx.local [170.229.11.2]
        Stratum: 4
DCSERVER.xxx.local *** PDC ***[170.229.11.2:123]:
    ICMP: 0ms delay
    NTP: +0.0000000s offset from DCSERVER.xxx.local
        RefID: ‘LOCL’ [0x4C434F4C]
        Stratum: 1
DCSERVER3.xxx.local[170.229.11.42:123]:
    ICMP: 0ms delay
    NTP: +0.3510327s offset from DCSERVER.xxx.local
        RefID: DCSERVER.xxx.local [170.229.11.2]
        Stratum: 4

When I try running any w32tm /query /configuration or w32tm /query /status I get the The following error occurred: Access is denied. (0x80070005)

What is the problem?

Попробуйте выполнить следующие действия, чтобы сбросить настройки времени Windows по умолчанию. Из командной строки с повышенными правами выполните:

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

Это должно устранить ошибки «Отказано в доступе».


Кроме того, рассмотрите возможность сделать следующее, чтобы настроить Windows Time для использования NTP-серверов, предоставляемых ntp.org, и проверять наличие обновленного времени каждый час. Я обнаружил, что эти NTP-серверы намного надежнее time.windows.com. Хотя Microsoft предлагает вам использовать их сервер времени, серверы ntp.org входят в число немногих других серверов NTP, также рекомендованных Microsoft.

  1. Убедитесь, что часовой пояс вашего компьютера правильный, и что его время несколько близко к правильному.

    Примечание. Технически на компьютерах, не входящих в домен, Windows Time должна иметь возможность получать обновленное время, если системные часы находятся в пределах 15 часов от правильного времени, но ваше время будет скорректировано быстрее, если вы находитесь в течение нескольких минут после правильное время

  2. Выполните следующие команды из командной строки с повышенными правами:

    reg add HKLMSYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient /v SpecialPollInterval /t reg_dword /d 3600 /f
    w32tm /config /manualpeerlist:"0.pool.ntp.org,0x1 1.pool.ntp.org,0x1 2.pool.ntp.org,0x1 3.pool.ntp.org,0x1" /syncfromflags:MANUAL /reliable:NO /update
    net stop w32time
    net start w32time
    w32tm /resync /rediscover
    

Подробное объяснение вышеприведенных команд:

  • Команда reg add добавляет значение SpecialPollInterval в реестр с данными 3600 которые настраивают Windows Time для получения обновленного времени каждый час (3600 секунд). Обратите внимание, что это работает, только если при настройке одноранговых серверов NTP указан флаг 0x1 .
  • w32tm /config /manualpeerlist: настраивает машину на использование четырех серверов ntp.org, которые получают доступ к большому количеству добровольных NTP-серверов по схеме распределения нагрузки. Как описано на сайте ntp.org:

    Имена 0, 1, 2 и 3.pool.ntp.org указывают на случайный набор серверов, который будет меняться каждый час.

    Флаг 0x1 устанавливается для каждого сервера, что необходимо для настройки SpecialPollInterval.

  • Команды net stop и net start перезапускают службу Windows Time и загружают новую конфигурацию.
  • w32tm /resync /rediscover указывает Windows Time немедленно связаться с одноранговым NTP-сервером и обновить системное время.

Понравилась статья? Поделить с друзьями:
  • Wake on lan wifi адаптер windows
  • W32time служба времени windows не запускается
  • W32pthreads dll скачать бесплатно для windows 10
  • Wake on lan command line windows
  • W1import dll скачать для windows 10 64 bit