Microsoft provides a tool to install and uninstall from command prompt the same components and subcomponents that you can manage from Control Panel -> Add/Remove Programs. This tool is named SYSOCMGR.EXE and is located by default into %systemroot%\system32 folder.
So, in this way you have the opportunity to install in an unattended manner whatever Windows component.
The syntax to run the tool is the following :
SYSOCMGR.EXE /i:%windir%\inf\sysoc.inf /u:c:\components.txt
Where sysoc.inf is the file used by Windows every time you launch Add/Remove programs from Control Panel.
And the second one, components.txt in this example, is the file where we are going to set what componentes/subcomponentes to install/uninstall. The name of the file can be whatever you like.
And the content of the file is something like the next one, in this case an example about how to install MS Radius Server (Internet Authentication Service) :
[Components]
netoc = on
[NetOptionalComponents]
IAS = 1
You can use in the text file just on/off and 1/0 for installation/uninstallation of Components and Subcomponets.