PowerTip: Find Services with the Same Dependencies with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to find services that have the same dependencies.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily find services that have the same dependencies?

Hey, Scripting Guy! Answer Use the Get-Service cmdlet with the RequiredServices parameter, and supply the name of the dependent service. (The following example shows services that require the rpcss service on my laptop.)

PS C:\> Get-Service -RequiredServices rpcss

 

Status   Name               DisplayName

——   —-               ———–

Running  DcomLaunch         DCOM Server Process Launcher

Running  RpcEptMapper       RPC Endpoint Mapper

0 comments

Discussion is closed.

Feedback usabilla icon