Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dependencies for services no longer displaying

100 views
Skip to first unread message

Rich H

unread,
Dec 22, 2009, 7:08:02 AM12/22/09
to
Windows XP, SP3, all updates current.

When I open the Services tool (%SystemRoot%\system32\services.msc /s) and
open the properties dialog for any of the services, then click the
Dependencies tab, both the lists always show <No Dependencies>.

Yet, if I open a Command Prompt and enter (for example):

sc enumdepend rpcss

It shows 4 dependencies.

Any idea what is wrong, and how I can repair it?

Tim Meddick

unread,
Dec 22, 2009, 5:39:54 PM12/22/09
to

I don't think that it's a case of "repairing" it...

I believe (I may be wrong about this, however) that the way in which sc.exe
enumerates dependencies differs from the way "Services.msc" lists dependencies.

The only evidence I have for this is that when I type at the command prompt :

sc.exe enumdepend rpcss

...I also get 4 dependencies listed, but when I look under the dependencies tab of
Services.msc, it lists no fewer than 49!

Also, the [enumdepend] parameter seems to only display what would otherwise be in the
"lower box" (The following system components depend on this service) rather than the
upper one that displays the services essential for starting the service in question.

Unless ALL the dependencies boxes in Services.msc are "empty" I rather think it could
just be a discrepancy in the way each application goes about retrieving it's
information.

==

Cheers, Tim Meddick, Peckham, London. :-)


"Rich H" <Ri...@discussions.microsoft.com> wrote in message
news:91D7B514-88F8-4702...@microsoft.com...

Rich H

unread,
Dec 23, 2009, 6:19:01 AM12/23/09
to
Thanks for the reply, Tim.

Unfortunately, it seems that both of the dependency boxes (top and bottom)
for ALL of services listed in Services.msc are empty. I'll confess that I
haven't checked each and every one, but I went through about 1/3 of them in
order, and checked a bunch of them at random, and they are all empty.

"Tim Meddick" wrote:

> I don't think that it's a case of "repairing" it...
>
> I believe (I may be wrong about this, however) that the way in which sc.exe
> enumerates dependencies differs from the way "Services.msc" lists dependencies.
>
> The only evidence I have for this is that when I type at the command prompt :
>
> sc.exe enumdepend rpcss
>

> ....I also get 4 dependencies listed, but when I look under the dependencies tab of

> Services.msc, it lists no fewer than 49!
>
> Also, the [enumdepend] parameter seems to only display what would otherwise be in the
> "lower box" (The following system components depend on this service) rather than the
> upper one that displays the services essential for starting the service in question.
>
> Unless ALL the dependencies boxes in Services.msc are "empty" I rather think it could
> just be a discrepancy in the way each application goes about retrieving it's
> information.
>
> ==
>
> Cheers, Tim Meddick, Peckham, London. :-)
>
>
>
>
> "Rich H" <Ri...@discussions.microsoft.com> wrote in message
> news:91D7B514-88F8-4702...@microsoft.com...
> > Windows XP, SP3, all updates current.
> >
> > When I open the Services tool (%SystemRoot%\system32\services.msc /s) and
> > open the properties dialog for any of the services, then click the
> > Dependencies tab, both the lists always show <No Dependencies>.
> >
> > Yet, if I open a Command Prompt and enter (for example):
> >
> > sc enumdepend rpcss
> >
> > It shows 4 dependencies.
> >
> > Any idea what is wrong, and how I can repair it?
>

> .
>

Tim Meddick

unread,
Dec 23, 2009, 2:34:51 PM12/23/09
to

Does the effect of every "dependency box" being empty persist after rebooting? -
I'm just thinking, perhaps, it was a "one off"!!?

==

Cheers, Tim Meddick, Peckham, London. :-)


"Rich H" <Ri...@discussions.microsoft.com> wrote in message

news:EC60B23B-166F-4FC0...@microsoft.com...


> Thanks for the reply, Tim.
>
> Unfortunately, it seems that both of the dependency boxes (top and bottom)
> for ALL of services listed in Services.msc are empty. I'll confess that I
> haven't checked each and every one, but I went through about 1/3 of them in
> order, and checked a bunch of them at random, and they are all empty.
>
> "Tim Meddick" wrote:
>

> < clipped >
>

Tim Meddick

unread,
Dec 23, 2009, 4:00:06 PM12/23/09
to
I've done a bit of "digging" and come up with the fact that it's a problem that has
been documented before - there is also a link between the Dependencies tab always
showing <No Dependencies> and Windows Server 2003 64-bit.

Plus, if you look in the registry - the dependencies that *should* be shown under the
Dependencies tab appear under the appropriate service's key in a value named
"DependOnService"

e.g. For the service "Logical Disk Manager Administrative Service" [dmadmin] under
the key :

[HKLM\System\CurrentControlSet\Services\dmadmin]

...you will find this value :

"DependOnService"="RpcSs \ PlugPlay \ DmServer" (REG_MULTI_SZ)

...which translates as :

RpcSs = "Remote Procedure Call (RPC)"
PlugPlay = "Plug and Play"
DmServer = "Logical Disk Manager"

...which are the three services that should appear in the dependencies box...

==

Cheers, Tim Meddick, Peckham, London. :-)


"Rich H" <Ri...@discussions.microsoft.com> wrote in message

news:91D7B514-88F8-4702...@microsoft.com...

Tim Meddick

unread,
Dec 23, 2009, 4:33:44 PM12/23/09
to
Just another thought;

...if you really *needed* to know what should be displayed in the Dependencies "box",
you could create a simple batch file that read the contents of the DependOnService
registry value for a given service (key).

e.g. ;

@echo off
if %1]==] goto USAGE
if %1]==/?] goto USAGE
reg QUERY HKLM\System\CurrentControlSet\Services\%1 >nul
if ERRORLEVEL 1 goto NO_KEY
reg QUERY HKLM\System\CurrentControlSet\Services\%1 /v DependOnService
if ERRORLEVEL 1 goto WARN
goto :EOF

:USAGE
echo.
echo SHOWDEP [service]
echo.
echo service - Specify a (short-name) service.
echo.
goto :EOF

:WARN
echo.
echo NOT ALL SERVICES THAT SHOW DEPENDENCIES USE THE VALUE:
echo.
echo [DependOnService]
echo.
echo Error: Value does not exist.
echo.
goto :EOF

:NO_KEY
echo.
echo Error: NO SUCH SERVICE (KEY) EXISTS
echo.

bugmenot

unread,
Aug 28, 2012, 3:10:36 PM8/28/12
to
Rich H wrote on 12/22/2009 07:08 ET :
> Windows XP, SP3, all updates current.
>
> When I open the Services tool (%SystemRoot%system32services.msc /s) and
> open the properties dialog for any of the services, then click the
> Dependencies tab, both the lists always show <No Dependencies>.
>
> Yet, if I open a Command Prompt and enter (for example):
>
> sc enumdepend rpcss
>
> It shows 4 dependencies.
>
> Any idea what is wrong, and how I can repair it?
>
Thanks to this website:
http://jeffwouters.nl/index.php/2011/04/wmi-error-when-viewing-dependencies-of-services/

The answer is in the script he posted:
solution was the following script:

@echo on
cd /d c:temp
if not exist %windir%system32wbem goto TryInstall
cd /d %windir%system32wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do regsvr32 -s %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%1
net start winmgmt
goto end

:FixSrv
if /I (%1) == (wbemcntl.exe) goto End
if /I (%1) == (mofcomp.exe) goto End
%1 /RegServer

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

This script basically re-registers all *.dll, *.mof and *.mfl files related to
the service

However you need to change one line.

Change this line:
for %%i in (*.mof,*.mfl) do Mofcomp %%1
to:
for %%i in (*.mof,*.mfl) do Mofcomp %%i
^ You are changing the number 1 to a letter i.

VanguardLH

unread,
Aug 28, 2012, 7:04:40 PM8/28/12
to
"bugmenot" wrote over 2 years later:

> Rich H wrote way back on 12/22/2009:
>
>> When I open the Services tool (%SystemRoot%system32services.msc /s)
>> and open the properties dialog for any of the services, then click
>> the Dependencies tab, both the lists always show <No Dependencies>.
>> Yet, if I open a Command Prompt and enter (for example):
>>
>> sc enumdepend rpcss
>>
>> It shows 4 dependencies. Any idea what is wrong, and how I can
>> repair it?
>
> Thanks to this website:
> http://jeffwouters.nl/index.php/2011/04/wmi-error-when-viewing-dependencies-of-services/
>
> The answer is in the script he posted:
<snipped the script>

Did you not notice the datestamp of the article to which you replied? I
doubt Rich was still waiting for a solution after over 2.6 years.
0 new messages