Find Out Which Services Depend on a Windows Service

Use PowerShell's Get-Service with -DependentServices to see which services would break if you stop a service.

WindowssystemservicepowershellLow risk
Run `Get-Service -Name LanmanServer -DependentServices` to list every service that depends on the one you plan to stop.

01Command

Command
$ Get-Service -Name LanmanServer -DependentServices | Format-Table Status, Name, DisplayName -AutoSize

02What it does

Before disabling or stopping a Windows service, it is wise to know what else relies on it. The -DependentServices parameter of Get-Service lists services whose startup or operation requires the target service. Replace LanmanServer with any service name, or add -RequiredServices to see what the service itself depends on.

03Risk

RiskLow risk
RequirementsWindows PowerShell 5.1 or PowerShell 7; no admin rights needed to view.
!Warning: Stopping a service that others depend on can take down file sharing, printing, or network logons until it is restarted.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-19 · Category: System & Settings

06Related solutions