Export (0) Print
Expand All

Sc enumdepend

Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Lists the services that depend on the specified service.

For examples of how to use this command, see Examples.

sc [<ServerName>] enumdepend [<ServiceName>] [<BufferSize>]

 

Parameter Description

<ServerName>

Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.

<ServiceName>

Specifies the service name returned by the getkeyname operation.

<BufferSize>

Specifies the size (in bytes) of the enumeration buffer. The default buffer size is 1,024 bytes.

/?

Displays help at the command prompt.

If the buffer is not big enough, the enumdepend command will display dependencies only partially, and it will specify the additional buffer size required to display all dependencies. If the output is truncated, rerun the operation and specify the larger buffer size.

To list the local services that will not run unless the TAPISRV service is running, type:

sc enumdepend tapisrv

For the next example, suppose that the following message is displayed after you run the sc enumdepend rpcss command:

[SC] EnumDependentServices: more data, need 6971 bytes 

To list the local services that depend on the RPCSS service, and to specify a buffer size of 6,971 bytes, type:

sc enumdepend rpcss 6971

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft