Wednesday, 8 August 2012

How to Install Roles and Features using the Command Line Interface.

How to Install Roles and Features using

the Command Line Interface.

This week’s video shows you how to install roles and features using CLI.
Using the command line interface to perform the installation of the necessary features can be much simpler than using the GUI.  This is especially so given that the commands to do so are pretty straightforward.  Simply typing in the command “ServerManagerCmd -i PowerShall” will perform an installation of PowerShell, for example.
The commands to initiate the installation of the various components for IIS are as follows.
  • ServerManagerCmd -i Web-Server
  • ServerManagerCmd -i Web-ISAPI-Ext
  • ServerManagerCmd -i Web-Metabase
  • ServerManagerCmd -i Web-Lgcy-Mgmt-Console
  • ServerManagerCmd -i Web-Basic-Auth
  • ServerManagerCmd -i Web-Digest-Auth
  • ServerManagerCmd -i Web-Windows-Auth
  • ServerManagerCmd -i Web-Dyn-Compression
  • ServerManagerCmd -i RPC-over-HTTP-proxy
  • ServerManagerCmd -i ADLDS
  • ServerManagerCmd -i Desktop-Experience
Installing the RPC-over-HTTP-proxy component is necessary to work Outlook Anywhere clients on the Client Access Server.  On the other hand, an Edge Transport Server you wouldn’t need IIS but will need Active Directory Lightweight Directory Services, which is installed by typing in the ServerManagerCmd command with “-i ADLDS”.  A Unified Messaging Server will need the Windows media player A/V codecs, which is installed using the ServerManagerCmd with “-i Desktop-Experience”.
Finally, installation commands can be placed into a batch file to make it a less tedious affair and to eliminate errors due to typos. Now you are ready to perform the typical installation of roles and features using command line interface (CLI).

No comments: