Get a list of services sorted by dependencies

Get-Service * | Where-Object {$_.Status -ne 'Stopped'} | ForEach-Object {$_.ServicesDependedOn} | Group-Object DisplayName | Sort-Object Count -Descending | Format-Table Count,Name -AutoSize
Advertisements

One thought on “Get a list of services sorted by dependencies

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s