refer http://edge.technet.com/Media/539/
On the heels of yesterdays Windows Server 2008 RTM announcement is a closer look at a new command line based management tool in Windows Server 2008: Server Manager Command. This tool allows, among other things, for unattended installation, configuration, and removal of roles and features in Windows Server 2008.
Who’s it for? IT Professionals who install and manage server roles and features.
What does it do?
· Installs and removes server roles and features via a command line.
· Displays roles and features installed on a server
· Allows for viewing the output of the tool in XML
· Query what dependencies will be installed with any given role or feature.
e.g. I want to install Windows PowerShell feature, then I just need to type following command in a command line winodw
servermanagercmd.exe -i PowerShell
You can get all roles and features list via command
servermanagercmd.exe -q