原文 How to install IIS 7.5 on Windows 7 using the Command Line

On Windows Vista, to install IIS 7.0 from the command line, you can use a tool called the Windows Package Manager (Pkgmgr.exe). For example, the command line for installing IIS 7. 0 on Windows Vista might look something like the following depending on how many IIS features you want to install:

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;
 

This has changed in Windows 7. In Windows 7, the Package Manager is deprecated and replaced with the Deployment Image Servicing and Management (DISM.exe) tool. To install IIS 7.5 on Windows 7, you use DISM.exe to target the running operating system (using the /Online switch) and use the /Enable-Feature option to enable individual IIS features. Below is the command line for installing all of IIS 7.5 features on Windows 7. NOTE: I have put each feature on a separate line to make it easier to read. In practice, the entire command line needs to be on a single line.

START /WAIT DISM /Online /Enable-Feature
/FeatureName:IIS-ApplicationDevelopment
/FeatureName:IIS-ASP
/FeatureName:IIS-ASPNET
/FeatureName:IIS-BasicAuthentication
/FeatureName:IIS-CGI
/FeatureName:IIS-ClientCertificateMappingAuthentication
/FeatureName:IIS-CommonHttpFeatures
/FeatureName:IIS-CustomLogging
/FeatureName:IIS-DefaultDocument
/FeatureName:IIS-DigestAuthentication
/FeatureName:IIS-DirectoryBrowsing
/FeatureName:IIS-FTPExtensibility
/FeatureName:IIS-FTPServer
/FeatureName:IIS-FTPSvc
/FeatureName:IIS-HealthAndDiagnostics
/FeatureName:IIS-HostableWebCore
/FeatureName:IIS-HttpCompressionDynamic
/FeatureName:IIS-HttpCompressionStatic
/FeatureName:IIS-HttpErrors
/FeatureName:IIS-HttpLogging
/FeatureName:IIS-HttpRedirect
/FeatureName:IIS-HttpTracing
/FeatureName:IIS-IIS6ManagementCompatibility
/FeatureName:IIS-IISCertificateMappingAuthentication
/FeatureName:IIS-IPSecurity
/FeatureName:IIS-ISAPIExtensions
/FeatureName:IIS-ISAPIFilter
/FeatureName:IIS-LegacyScripts
/FeatureName:IIS-LegacySnapIn
/FeatureName:IIS-LoggingLibraries
/FeatureName:IIS-ManagementConsole
/FeatureName:IIS-ManagementScriptingTools
/FeatureName:IIS-ManagementService
/FeatureName:IIS-Metabase
/FeatureName:IIS-NetFxExtensibility
/FeatureName:IIS-ODBCLogging
/FeatureName:IIS-Performance
/FeatureName:IIS-RequestFiltering
/FeatureName:IIS-RequestMonitor
/FeatureName:IIS-Security
/FeatureName:IIS-ServerSideIncludes
/FeatureName:IIS-StaticContent
/FeatureName:IIS-URLAuthorization
/FeatureName:IIS-WebDAV
/FeatureName:IIS-WebServer
/FeatureName:IIS-WebServerManagementTools
/FeatureName:IIS-WebServerRole
/FeatureName:IIS-WindowsAuthentication
/FeatureName:IIS-WMICompatibility
/FeatureName:WAS-ConfigurationAPI
/FeatureName:WAS-NetFxEnvironment
/FeatureName:WAS-ProcessModel
/FeatureName:WAS-WindowsActivationService

Habib Heydarian.

最新文章

  1. odoo server命令行以及配置文件
  2. 多iframe使用tab标签方式添加、删除、切换的处理实例
  3. LeetCode:Combination Sum I II
  4. Drainage Ditches(dinic)
  5. vm克隆虚拟机网络配置
  6. 长期演进技术(LTE,Long Term Evolution)
  7. Delphi函数翻译成VC要注意句柄指针传递(传递Handle的时候,必须加上一个指针引用,才能消除编译错误)
  8. hdu 4322 最大费用流
  9. log4j是什么
  10. IO流的总结
  11. WPF 完美截图 <一>
  12. js调用浏览器打印指定div内容
  13. javascript柯里化及组合函数~
  14. 19迭代模式Iterator
  15. ubuntu16.10 安装ibus中文输入法
  16. UE4官方行为树快速入门文档解析和修改
  17. SharePoint 会话(Session)状态和状态服务
  18. FFmpeg软硬解和多线程解码
  19. 基于jquery和svg超炫的网页动画
  20. Logstash 性能及其替代方案

热门文章

  1. [Unity3D]转让Android介面
  2. 解决SMARTFORMS 中table 控件单行跨页的问题
  3. Android适应方案汇总(三)
  4. 精致的外观Request
  5. [WebGL入门]二十四,补色着色
  6. Maven使用-创建一个Web项目
  7. CareerCup Chapter 4 Trees and Graphs
  8. android登陆接口调试
  9. Team Foundation Server 2013 Update 3 下载激活
  10. ExtJS学习-----------Ext.Number,ExtJS对javascript中的Number的扩展