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?
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...
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?
>
> .
>
==
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 >
>
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...
...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.