Get-MSModuleDependencies

Gets a list of dependencies for a given item(s)

Syntax


Get-MSModuleDependencies -Module (String) -Id (Int32) [-IncludeDependencyOf] [-AsTree] [-IncludeRoot] [-MaxDepth (Int32)]

Get-MSModuleDependencies -Module (String) -Ids (Int32[]) [-IncludeDependencyOf] [-AsTree] [-IncludeRoot] [-MaxDepth (Int32)]

Examples


## Get all dependencies (on and of) linked to Application with Id 2000
Get-MSModuleDependencies -Module Applications -Id 2000

## Get all dependencies that Application with Id 2000 has on other items
(Get-MSModuleDependencies -Module Applications -Id 2000).DependencyOn

## Get items which have Application Id 2187 as a dependency
(Get-MSModuleDependencies -Module Applications -Id 2187 -IncludeDependencyOf).DependencyOf