When you set up a new Windows server and want to make sure all necessary Windows features are installed on it, you can list them in text format. If you want to replicate the configuration of an existing server, just list the features of both servers and compare them in a comparison tool, like Araxis Merge.
To list the installed Windows features, execute the following in the PowerShell prompt
The result follows the layout of the checkboxes of the graphical user interface in text form.
[X] Web Server (IIS) Web-Server Installed [X] Web Server Web-WebServer Installed [X] Common HTTP Features Web-Common-Http Installed [X] Default Document Web-Default-Doc Installed [X] Directory Browsing Web-Dir-Browsing Installed [X] HTTP Errors Web-Http-Errors Installed [X] Static Content Web-Static-Content Installed [X] HTTP Redirection Web-Http-Redirect Installed [ ] WebDAV Publishing Web-DAV-Publishing Available
To produce a simpler output execute
Dism /online /Get-Features
This will return
Deployment Image Servicing and Management tool Version: 6.3.9600.17031 Image Version: 6.3.9600.17031 Features listing for package : Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~amd64~~6.3.9600.16384 Feature Name : NetFx4ServerFeatures State : Enabled Feature Name : NetFx4 State : Enabled Feature Name : NetFx4Extended-ASPNET45 State : Disabled