For a Win2K8 machine we install IIS and enable all features using the command
ServerManagerCmd.exe -install Web-Server -allSubFeatures -resultPath C:\Admin\WebServer.xml -restart
How do we enable all features for Win2k12 machine where IIS is already installed using cmd ?
I personally use this:
Get-WindowsFeature | ? {$_.Name -match "^Web-"} | Install-WindowsFeature
Doesn't work on Powershell 2.0