Productivity Tools

Tools written by an IT business manager, a passionate developer.


It looks recursively in directory to find all psd1 files, next it take RequiredModules key and writes it. If DependencyName parameter is provided. It will wrote only those modules which requires given dependency to work.

Find-ModuleDependencies without any parameters will go through all directories in given path and will search for psd1 files, next it will write on the screen value of the RequiredModules key.

You can also pass Path parameter if you want to perform analysis for different directory.

If you want to look for particular dependency just use parameter DependencyName then it will show just those modules which needs provided dependency

You can also use -Like parameter which will use like qualifier instead of equals.

I am using this when, I am changing module and I need to know which modules should be updated.