Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Installing IIS 7.5 through Commandline  (Read 3388 times)

0 Members and 1 Guest are viewing this topic.

mohitht

  • Guest
Installing IIS 7.5 through Commandline
« on: March 03, 2014, 07:01:08 pm »
Hi All,


Do you ever tried IIS to be installed via command line? We can Install the IIS using the front line interface and this can be done via by adding the roles in the server  manager

First goto the Server manager



Now select the IIS web server in server manger by adding the roles



click next -> Install the required features ->



Click finish



Now to install the  IISwebserver using the CLI

type the following command in commnad prompt
right click and run as administrator.

enter the following command

Code: [Select]
Servermanagercmd.exe -i Web-Server Web-WebServer Web-Common-Http Web-Static-Content Web-Default-Doc Web-Dir-Browsing Web-Http-Errors Web-App-Dev Web-Asp-Net Web-Net-Ext Web-ISAPI-Ext Web-ISAPI-Filter Web-Health Web-Http-Logging Web-Request-Monitor Web-Security Web-Filtering Web-Performance Web-Stat-Compression Web-Mgmt-Tools Web-Mgmt-Console Web-Mgmt-Console Web-Metabase Web-WMI Web-Lgcy-Scripting Web-Lgcy-Mgmt-Console RSAT-Web-Server




There is also another option

Run the windows power shell , run it as Administrator

now type the following in powershell


Code: [Select]
Import-module servermanger press enter

Code: [Select]
Add-windowsfeature  <enter the feature name>


Code: [Select]
Get-Windowsfeature



Thats it. :)

Try   8) 8) :) ;)