Alpesh Nakar's Blog

HowTo Enable IIS in Windows7 from CLI

This how to is enable IIS in Windows7, either using GUI or CLI. This is one of the pre-requisites for installing SharePoint 2010 on Windows7 for development purposes.

1. Click [Start] button.
clip_image001[4]

2. In the [Search Box] box, type [windows features].
clip_image002[4]

3. Click [###].
clip_image003[4]

4. Double-click [Internet Information Services] check box.
clip_image005[4]

5. Double-click [Web Management Tools] check box.
clip_image007[4]

6. Double-click [World Wide Web Services] check box.
clip_image009[4]

7. Double-click [IIS 6 Management Compatibility] check box.
clip_image011[4]

8. Double-click [Application Development Features] check box.
clip_image013[4]

9. Double-click [Common HTTP Features] check box.
clip_image015[4]

10. Drag from [Position] indicator to [Tablet PC Components] check box.
clip_image017[4]

11. Double-click [Health and Diagnostics] check box.
clip_image019[4]

12. Double-click [Performance Features] check box.
clip_image021[4]

13. Double-click [Security] check box.
clip_image023[6]

 

Alternatively you can use these command line to do the same thing:

Start a Command Prompt and paste in this command.

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

This entry was posted on Tuesday, October 20th, 2009 at 11:40 am and is filled under: SharePoint, SharePoint 2010, Windows