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


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.


Specifies the service name returned by the getkeyname operation.


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

Additional references