Ошибка 1051 команда остановки была отправлена службе

RRS feed

  • Remove From My Forums
  • Вопрос

  • DHCP-клиент не перезапускается и не останавливается, выдавая сообщение,
    что не удалось остановить службу DHCP-клиент на Локальный компьютер. Ошибка 1051: Команда остановки была отправлена службе, от которой зависят другие службы.
     

    В браузере не войти в настройки роутера. 

Все ответы

  • Ну так а что не понятно? Есть сервисы, которые зависят от службы DHCP-Client. Поэтому придется предварительно остановить их. Пример:

    PS C:Windowssystem32> (Get-Service DHCP).DependentServices
    
    Status   Name               DisplayName
    ------   ----               -----------
    Stopped  NcaSvc             Помощник по подключению к сети
    Running  iphlpsvc           Вспомогательная служба IP
    Running  WinHttpAutoProx... Служба автоматического обнаружения ...
    Running  netprofm           Служба списка сетей
    Running  NlaSvc             Служба сведений о подключенных сетях
    
    

    Если не хотите использовать DHCP для получения адреса — установите статический на интерфейсе. Еще можно поиграться с блокировкой портов на файрволе, если этот вариант по какой-то причине не подходит.

    The DHCP employs a connectionless service model, using the User Datagram Protocol (UDP). It is implemented with two UDP port numbers for its operations which are the same as for the BOOTP protocol. UDP port number 67 is the destination port of a server, and UDP port number 68 is used by the client.

I have ServiceA, ServiceB, and ServiceC.  ServiceB depends on ServiceA, ServiceC depends on ServiceB.

Dependency chain:

ServiceA <- ServiceB <- ServiceC

When I open Services desktop app ( Services.msc ), then click on ServiceA and hit restart, I get an error:

Error 1051 Stop Control has been sent to a service that other running services are dependent on

The problem is that windows attempts to stop ServiceB before ServiceC.  

This setup works in pre-Windows 10 systems.  In pre-Windows 10, ServiceC would be stopped first then ServiceB then A.

I have tried altering the order in which I set the dependencies.  I have tried creating a servicegroup and setting the startup order in the registry under GroupOrderList.  Nothing has any effect, and the restarting always picks the same order and
fails.

From powershell, I can run restart-service ServiceA -force, and all services restart correctly without an error.

This appears to be an issue with the Windows service manager.

  • Moved by

    Monday, August 7, 2017 5:52 AM
    Windows 10

Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

1

03.07.2019, 15:15. Показов 4677. Ответов 19

Метки нет (Все метки)


Студворк — интернет-сервис помощи студентам

Нужно принудительно без запросов остановить эти две службы:

Система событий COM+ (EventSystem)
Служба кэша шрифтов Windows (FontCache)

Я пробовал это, но выходит ошибка

Bash
1
2
sr stop EventSystem
sr stop FontCache

Мне это нужно для удаления всего кеша шрифтов

Bash
1
del /A /F /Q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*.dat"



0



5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

03.07.2019, 17:39

2

Не sr, а sc.



0



6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

03.07.2019, 19:10

 [ТС]

3

«Не sr, а sc.» …это тоже не останавливает службы.
Нужно остановить обе службы за один раз.



0



FlasherX

5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

03.07.2019, 20:06

4

Сперва надо определить зависимые службы. См. командой sc EnumDepend EventSystem .
После сменить автоматический путь запуска на ручной или отключённый. А далее отключать.

Windows Batch file
1
2
3
4
5
6
7
8
9
10
sc config SENS start= demand
sc config BITS start= demand
sc config EventSystem start= disabled
sc config FontCache start= disabled
sc stop BITS
sc stop SENS
sc stop COMSysApp
sc stop sppuinotify
sc stop EventSystem
sc stop FontCache



0



6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

03.07.2019, 22:50

 [ТС]

5

Это обрубает их намертво …и даже после перезагрузки компа эти службы МЕРТВЫЕ!



0



FlasherX

5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

03.07.2019, 23:29

6

А вы нигде не писали, как именно вам надо их остановить. Временно что ли?

Windows Batch file
1
2
3
4
5
6
@echo off
for %%s in (SENS BITS EventSystem FontCache) do sc config %%s start= demand
for %%s in (SENS BITS COMSysApp sppuinotify EventSystem FontCache) do sc stop %%s
del /a/f/q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*.dat"
for %%s in (SENS BITS COMSysApp sppuinotify EventSystem FontCache) do sc start %%s
for %%s in (SENS EventSystem FontCache) do sc config %%s start= auto



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

05.07.2019, 12:07

 [ТС]

7

Нужна именно временная остановка этих служб, только для того чтобы удалить весь кеш шрифтов.
Протестировал ваш последний код, не знаю почему но из каталога удается только часть файлов *.dat
Когда я вручную останавливаю эти службы то могу спокойно удалить все файлы *.dat (изначально их 4 файла)

Добавлено через 3 часа 9 минут
Поставил паузы чтобы можно было сохранить выполнение всех команд:

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
C:UsersUzeerDesktopCourier New>for %s in (SENS BITS EventSystem FontCache) d
o sc config %s start= demand
 
C:UsersUzeerDesktopCourier New>sc config SENS start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config BITS start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config EventSystem start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config FontCache start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>for %s in (SENS BITS COMSysApp sppuinotify Ev
entSystem FontCache) do sc stop %s
 
C:UsersUzeerDesktopCourier New>sc stop SENS
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
C:UsersUzeerDesktopCourier New>sc stop BITS
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x1
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop COMSysApp
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop sppuinotify
 
Имя_службы: sppuinotify
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x2
        Ожидание           : 0x1d4c0
 
C:UsersUzeerDesktopCourier New>sc stop EventSystem
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
C:UsersUzeerDesktopCourier New>sc stop FontCache
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .
 
C:UsersUzeerDesktopCourier New>del /a/f/q "C:WindowsServiceProfilesLocalS
erviceAppDataLocal*.dat"
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive0.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive1.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .
 
C:UsersUzeerDesktopCourier New>for %s in (SENS BITS COMSysApp sppuinotify Ev
entSystem FontCache) do sc start %s
 
C:UsersUzeerDesktopCourier New>sc start SENS
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
C:UsersUzeerDesktopCourier New>sc start BITS
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 408
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start COMSysApp
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 2  START_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0xea60
        ID_процесса        : 3168
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start sppuinotify
 
Имя_службы: sppuinotify
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 560
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start EventSystem
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
C:UsersUzeerDesktopCourier New>sc start FontCache
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 560
        Флаги              :
 
C:UsersUzeerDesktopCourier New>for %s in (SENS EventSystem FontCache) do sc
config %s start= auto
 
C:UsersUzeerDesktopCourier New>sc config SENS start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config EventSystem start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config FontCache start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .



0



5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

05.07.2019, 16:31

8

В третьей строчке COMSysApp перед SENS поставьте.



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

05.07.2019, 18:57

 [ТС]

9

FlasherX Вы имеете ввиду так:

Bash
1
2
3
4
5
6
@echo on
for %%s in (SENS BITS EventSystem FontCache) do sc config %%s start= demand
for %%s in (COMSysApp SENS BITS  sppuinotify EventSystem FontCache) do sc stop %%s
del /a/f/q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*.dat"
for %%s in (SENS BITS COMSysApp sppuinotify EventSystem FontCache) do sc start %%s
for %%s in (SENS EventSystem FontCache) do sc config %%s start= auto

Добавлено через 3 минуты

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
C:UsersUzeerDesktopCourier New>for %s in (SENS BITS EventSystem FontCache) d
o sc config %s start= demand
 
C:UsersUzeerDesktopCourier New>sc config SENS start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config BITS start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config EventSystem start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config FontCache start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>for %s in (COMSysApp SENS BITS sppuinotify Ev
entSystem FontCache) do sc stop %s
 
C:UsersUzeerDesktopCourier New>sc stop COMSysApp
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop SENS
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
C:UsersUzeerDesktopCourier New>sc stop BITS
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x1
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop sppuinotify
[SC] ControlService: ошибка: 1062:
 
Служба не запущена.
 
 
C:UsersUzeerDesktopCourier New>sc stop EventSystem
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
C:UsersUzeerDesktopCourier New>sc stop FontCache
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>REM pause
 
C:UsersUzeerDesktopCourier New>del /a/f/q "C:WindowsServiceProfilesLocalS
erviceAppDataLocal*.dat"
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive0.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive1.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
 
C:UsersUzeerDesktopCourier New>REM pause
 
C:UsersUzeerDesktopCourier New>for %s in (SENS BITS COMSysApp sppuinotify Ev
entSystem FontCache) do sc start %s
 
C:UsersUzeerDesktopCourier New>sc start SENS
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
C:UsersUzeerDesktopCourier New>sc start BITS
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 488
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start COMSysApp
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 2  START_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0xea60
        ID_процесса        : 1800
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start sppuinotify
 
Имя_службы: sppuinotify
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 424
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start EventSystem
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
C:UsersUzeerDesktopCourier New>sc start FontCache
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 424
        Флаги              :
 
C:UsersUzeerDesktopCourier New>for %s in (SENS EventSystem FontCache) do sc
config %s start= auto
 
C:UsersUzeerDesktopCourier New>sc config SENS start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config EventSystem start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config FontCache start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .



0



5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

05.07.2019, 19:04

10

Что выдаёт sc EnumDepend SENS ?



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

05.07.2019, 19:07

 [ТС]

11

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.
 
C:UsersUzeer>sc EnumDepend SENS
[SC] EnumDependentServices: прочитано записей = 2
 
Имя_службы: igfxCUIService1.0.0.0
Выводимое_имя: Intel(R) HD Graphics Control Panel Service
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
Имя_службы: COMSysApp
Выводимое_имя: Системное приложение COM+
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeer>pause



0



FlasherX

5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

05.07.2019, 19:13

12

Windows Batch file
1
2
3
4
5
6
@echo off
for %%s in (igfxCUIService1.0.0.0 SENS BITS EventSystem FontCache) do sc config %%s start= demand
for %%s in (igfxCUIService1.0.0.0 COMSysApp SENS BITS sppuinotify EventSystem FontCache) do sc stop %%s
del /a/f/q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*.dat"
for %%s in (igfxCUIService1.0.0.0 SENS BITS COMSysApp sppuinotify EventSystem FontCache) do sc start %%s
for %%s in (SENS EventSystem FontCache) do sc config %%s start= auto



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

05.07.2019, 19:17

 [ТС]

13

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[SC] ChangeServiceConfig: успех
[SC] ChangeServiceConfig: успех
[SC] ChangeServiceConfig: успех
[SC] ChangeServiceConfig: успех
[SC] ChangeServiceConfig: успех
 
Имя_службы: igfxCUIService1.0.0.0
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x1
        Ожидание           : 0x0
 
Имя_службы: sppuinotify
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x2
        Ожидание           : 0x1d4c0
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive0.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive1.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
C:WindowsServiceProfilesLocalServiceAppDataLocal~FontCache-System.dat
Отказано в доступе.
 
Имя_службы: igfxCUIService1.0.0.0
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 2  START_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
        ID_процесса        : 3636
        Флаги              :
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 488
        Флаги              :
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 3292
        Флаги              :
 
Имя_службы: sppuinotify
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 424
        Флаги              :
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 424
        Флаги              :
[SC] ChangeServiceConfig: успех
[SC] ChangeServiceConfig: успех
[SC] ChangeServiceConfig: успех
Для продолжения нажмите любую клавишу . . .



0



5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

05.07.2019, 19:35

14

Похоже от SENS ещё что-то зависит, но утилиты этого не покажут. А на вкладке Службы в Диспетчере (Ctrl+Shift+Esc) её удаётся отключить? Или из services.msc ?



0



6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

05.07.2019, 19:39

 [ТС]

15

В службах я спокойно останавливаю эти две службы:

Система событий COM+ (EventSystem)
Служба кэша шрифтов Windows (FontCache)

И потом вручную удаляю 4 файла *.dat



0



FlasherX

5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

05.07.2019, 19:46

16

Хм, igfxCUIService1.0.0.0 снова включилась, тогда установим её в disabled:

Windows Batch file
1
2
3
4
5
6
7
@echo off
sc config igfxCUIService1.0.0.0 start= disabled
for %%s in (COMSysApp SENS BITS EventSystem FontCache) do sc config %%s start= demand
for %%s in (igfxCUIService1.0.0.0 COMSysApp SENS BITS sppuinotify EventSystem FontCache) do sc stop %%s
del /a/f/q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*.dat"
for %%s in (EventSystem SENS igfxCUIService1.0.0.0 COMSysApp BITS sppuinotify FontCache) do sc start %%s
for %%s in (EventSystem SENS igfxCUIService1.0.0.0 FontCache) do sc config %%s start= auto



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

05.07.2019, 21:28

 [ТС]

17

Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
C:UsersUzeerDesktopCourier New>sc config igfxCUIService1.0.0.0 start= disabl
ed
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>for %s in (COMSysApp SENS BITS EventSystem Fo
ntCache) do sc config %s start= demand
 
C:UsersUzeerDesktopCourier New>sc config COMSysApp start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config SENS start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config BITS start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config EventSystem start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config FontCache start= demand
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>for %s in (igfxCUIService1.0.0.0 COMSysApp SE
NS BITS sppuinotify EventSystem FontCache) do sc stop %s
 
C:UsersUzeerDesktopCourier New>sc stop igfxCUIService1.0.0.0
 
Имя_службы: igfxCUIService1.0.0.0
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop COMSysApp
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop SENS
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
C:UsersUzeerDesktopCourier New>sc stop BITS
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x1
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>sc stop sppuinotify
[SC] ControlService: ошибка: 1062:
 
Служба не запущена.
 
 
C:UsersUzeerDesktopCourier New>sc stop EventSystem
[SC] ControlService: ошибка: 1051:
 
Команда остановки была отправлена службе, от которой зависят другие службы.
 
 
C:UsersUzeerDesktopCourier New>sc stop FontCache
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .
 
C:UsersUzeerDesktopCourier New>del /a/f/q "C:WindowsServiceProfilesLocalS
erviceAppDataLocal*.dat"
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive0.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
C:WindowsServiceProfilesLocalServiceAppDataLocallastalive1.dat
Процесс не может получить доступ к файлу, так как этот файл занят другим процесс
ом.
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .
 
C:UsersUzeerDesktopCourier New>for %s in (EventSystem SENS igfxCUIService1.0
.0.0 COMSysApp BITS sppuinotify FontCache) do sc start %s
 
C:UsersUzeerDesktopCourier New>sc start EventSystem
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
C:UsersUzeerDesktopCourier New>sc start SENS
[SC] StartService: ошибка: 1056:
 
Одна копия службы уже запущена.
 
 
C:UsersUzeerDesktopCourier New>sc start igfxCUIService1.0.0.0
 
Имя_службы: igfxCUIService1.0.0.0
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 2  START_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x0
        ID_процесса        : 1412
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start COMSysApp
 
Имя_службы: COMSysApp
        Тип                : 10  WIN32_OWN_PROCESS
        Состояние          : 2  START_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0xea60
        ID_процесса        : 3288
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start BITS
 
Имя_службы: BITS
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 488
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start sppuinotify
 
Имя_службы: sppuinotify
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 424
        Флаги              :
 
C:UsersUzeerDesktopCourier New>sc start FontCache
 
Имя_службы: FontCache
        Тип                : 20  WIN32_SHARE_PROCESS
        Состояние          : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        Код_выхода_Win32   : 0  (0x0)
        Код_выхода_службы  : 0  (0x0)
        Контрольная_точка  : 0x0
        Ожидание           : 0x7d0
        ID_процесса        : 424
        Флаги              :
 
C:UsersUzeerDesktopCourier New>for %s in (EventSystem SENS igfxCUIService1.0
.0.0 FontCache) do sc config %s start= auto
 
C:UsersUzeerDesktopCourier New>sc config EventSystem start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config SENS start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config igfxCUIService1.0.0.0 start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>sc config FontCache start= auto
[SC] ChangeServiceConfig: успех
 
C:UsersUzeerDesktopCourier New>pause
Для продолжения нажмите любую клавишу . . .



0



FlasherX

5849 / 2561 / 1007

Регистрация: 06.06.2017

Сообщений: 8,744

06.07.2019, 05:55

18

Интересно, так отключится SENS:

Windows Batch file
1
2
3
4
5
@sc config igfxCUIService1.0.0.0 start= disabled
@for %%s in (COMSysApp SENS) do @sc config %%s start= demand
@for %%s in (igfxCUIService1.0.0.0 COMSysApp) do @sc stop %%s
net stop SENS
wmic service SENS call StopService

Если не получится, придётся мочить процесс:

Windows Batch file
1
2
taskkill /f /fi "Services eq SENS"
taskkill /f /fi "status eq not responding"



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

06.07.2019, 07:23

 [ТС]

19

Нашел проблему! Оказывается что в этом каталоге были скрыты еще несколько файлов *.dat которые не относились к кешу шрифтов, их удаление сильно мешало всему процессу. Сделал удаление по имени а не по расширению. И стало достаточно остановки одной службы FontCache
Не знаю почему но при ручном удалении требовалось остановить две службы)))

Windows Batch file
1
2
3
4
@echo off
net stop FontCache
del /A /F /Q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*FontCache*"
exit

Большое спасибо всем за помощь!



0



Beer-Sheva

6 / 6 / 0

Регистрация: 09.10.2013

Сообщений: 251

29.11.2019, 10:08

 [ТС]

20

Так по моему будет правильней:

Windows Batch file
1
2
3
4
5
6
7
8
@echo on
 
net stop FontCache
del /Q "%WinDir%ServiceProfilesLocalServiceAppDataLocal*FontCache*"
del /Q "%LOCALAPPDATA%*FontCache*"
net start FontCache
 
exit



0



Вопрос:

У меня есть ServiceA, ServiceB и ServiceC. ServiceB зависит от ServiceA, ServiceC зависит от ServiceB.

Целевая зависимость:

ServiceA <- ServiceB <- ServiceC

Когда я открываю службы Windows, затем нажимаю на ServiceA и ударяю перезагрузку, я получаю сообщение об ошибке:

Ошибка 1051 Stop Control был отправлен службе, которую другие запущенные службы зависят от

Проблема в том, что Windows пытается остановить ServiceB до ServiceC.

Эта настройка работает в системах до Windows 10. В pre-Windows 10 ServiceC будет остановлен сначала, затем ServiceB, затем A.

Я попытался изменить порядок, в котором я устанавливал зависимости. Я попытался создать группу обслуживания и установить порядок запуска в реестре в GroupOrderList. Ничего не влияет, и перезапуск всегда выбирает один и тот же порядок и терпит неудачу.

Из powershell я могу запустить службу перезапуска ServiceA -force, и все службы перезапускают правильно без ошибок.

Это, по-видимому, проблема с диспетчером служб Windows.

Как я могу гарантировать, что услуги будут остановлены в правильном порядке?

This solution applies to all those services, with which you’re facing Error 1051.

Services errors are quite common when you’ve to manage different services and start/stop them for various purpose. Each service in Windows behaves differently and some services may stop in single instance while there are some other services which you can’t stop in single shot. This article talks about one such case when you’re unable to stop a running/started service.

In this example, while stopping the Network Location Awareness service, we greeted with following error:

Page Contents

Windows could not stop the Network Location Awareness service on Local Computer.

Error 1051: A stop control has been sent to a service which other running services are dependent on.

FIX Error 1051 A Stop Control Has Been Sent To A Service Which Other Running Services Are Dependent On In Windows 10

This error may occur with any other service as well. Here, while you stop concerned service, it sends stop signal to dependent services. However, it might be possible that some of those dependent services may refuse the stop signal. So if either of those dependent services refuses stop signal, the main or concerned service would not be able to stop and hence the error message.

To deal with this problem, you can try following fixes:

FIX: Error 1051: A Stop Control Has Been Sent To A Service Which Other Running Services Are Dependent On In Windows 10/8.1/8/7

FIX 1 – Stop The Dependency Services First

1. Open Services snap-in and locate the service with which you’re facing this issue and select Properties.

FIX Error 1051 A Stop Control Has Been Sent To A Service Which Other Running Services Are Dependent On In Windows 10

2. On the property sheet, on the Dependencies tab, check the list of dependent services. You need to first stop these dependency services.

FIX Error 1051 A Stop Control Has Been Sent To A Service Which Other Running Services Are Dependent On In Windows 10

3. Once you stopped dependency services, retry to stop problematic or concerned service. This time it should stop as expected.

FIX Error 1051 A Stop Control Has Been Sent To A Service Which Other Running Services Are Dependent On In Windows 10

FIX 2 – Using Command Prompt

1. Open administrative Command Prompt.

2. Run following command after substituting the issued service name. The service name can be found on the service property sheet, General tab.

net stop <ServiceName> /yes

* Substitute <ServiceName> with actual service name. For e.g. net stop NlaSvc /yes.

FIX Error 1051 A Stop Control Has Been Sent To A Service Which Other Running Services Are Dependent On In Windows 10

This method is quite quick and easy to stop the concerned service.

Here’s the video to illustrate this fix:

Hope this helps you!

READ THESE ARTICLES NEXT

  • Fix: Windows could not start the Windows Update service on Local Computer
  • How to Disable Antimalware Service Executable in Windows 11
  • The Windows Installer Service could not be accessed in Windows 11
  • How to delete services in Windows 11/10
  • Fix: Error 1058 The service cannot be started in Windows 10
  • Fix Error 1069: The service did not start due to a logon failure
  • The Delayed Auto-start Flag Could Not Be Set
  • Error 1061: The Service Cannot Accept Control Messages At This Time
  • FIX: Windows Wireless Service Is Not Running On This Computer
  • Update Orchestrator Service In Windows 10

Понравилась статья? Поделить с друзьями:
  • Ошибка 1051 mysql
  • Ошибка 1051 10 windows
  • Ошибка 1050 sql
  • Ошибка 1045 phpmyadmin
  • Ошибка 1044 эур на калине