Command line administration windows server role
1. Windows server 2008
1. Use servermanagercmd.exe
Servermanagercmd.exe-query query
Servermanagercmd.exe-install... Installation
Servermanagercmd.exe-remove... Unloading
2. Use powershell
First of all, powershell import-module servermanager.
Powershell-Get-WindowsFeature...
Powershell-Install-WindowsFeature...
Powershell-Remove-WindowsFeature...
II. Windows server 2012
Powershell-Get-WindowsFeature...
Powershell-Install-WindowsFeature...
Powershell-Remove-WindowsFeature...