May 28th, 2013

PowerTip: Find Services with the Same Dependencies with PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.