Finding Services dependency


If you Want to check Services dependency using PowerShell, here is little snippet.

Get-Service -ComputerName localhost |

where Status -EQ Running |

Select-Object -Property Name,

@{Name = ‘RequiredServices’ ; Expression = { $_.RequiredServices -join ‘,’}},

CanPauseAndContinue,

CanShutdown,

CanStop,

DisplayName,

@{Name=’DependentServices’;Expression = { $_.DependentServices -join ‘,’}},

MachineName,

ServiceName,

@{Name=’ServicesDependedOn’;Expression = { $_.ServicesDependedOn -join ‘,’}},

ServiceHandle,

Status,

ServiceType,

Site,

Container

Regards,

Chaitanya

Leave a comment

Design a site like this with WordPress.com
Get started