Zachary Loeber

The personal website of Zachary Loeber.

Gather (and Diagram) Installed Roles and Features With Powershell

Use this powershell script to gather installed features and roles from remote systems. This uses two wmi classes in an attempt to gather as much information as possible. Win32_ServerFeature will contain roles and their dependencies on systems running Windows 2008 and above. For these systems we can use this hierarchy to also produce pretty diagrams using graphviz and techniques I’ve exhibited in some of my other scripts (I added this last part in cause it is easy to do, not really certain how useful it is other than maybe exploring the dependencies between windows roles/features).

To actually generate the diagrams you will need graphviz’s dot.exe executable which can be downloaded and installed here. Or here is a portable version of the application you can try utilizing. All you need is for the dot.exe file to work correctly to generate your diagram. You may have to modify this script to use the appropriate path to the executable if you use the portable version of graphviz.

Version

1.0.1: 12/17/2013        – Initial release

1.0.0: 10/12/2013        – Initial creation

Screenshot

2013-12-18 12_41_14-GVEdit For Graphviz ver_1.02

Downloads

Download the most recent version of this script from the Microsoft Technet Gallery

comments powered by Disqus