编程中检查IIS7组件的安装情况
http://learn.iis.net/page.aspx/135/discover-installed-components/
说明:ASP.NET网络应用程序在IIS7上部署的时候,经常会要求预装某些组件(特别是IIS6的兼容组件),上文即描述了如何通过编程的方法确定各个组件是否已经安装。
Discover Installed Components
By IIS Team
November 22, 2007
Introduction
The modular architecture in IIS 7.0 and above allows you to limit the potential attack surface on your IIS installation, or to replace built-in features with third-party or custom implementations. In general, this architecture offers you an the ability to control how you deploy IIS on your network.
But if there is a downside to this modular architecture, it is that you can no longer be certain every IIS component you need is available, just because IIS has been installed. You might also discover that making sure multiple servers all have the same IIS components can be a chore.
To work around these issues, we are publishing a list of registry keys that show whether any given IIS module has been installed. Use these registry keys to programmatically check on IIS components. If a component has been installed, the registry key has a DWORD value of 00000001. If a component has never been installed or has been uninstalled, the registry key does not exist. Use the table below to match IIS component names with their registry keys.
Registry Keys
These keys appear in the following registry hive:
HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp\Components\
|
Display Name |
Registry Key |
|---|---|
|
Web Server |
W3SVC |
|
Common HTTP Features |
|
|
Static Content |
StaticContent |
|
Default Document |
DefaultDocument |
|
Directory Browsing |
DirectoryBrowse |
|
HTTP Errors |
HttpErrors |
|
HTTP Redirection |
HttpRedirect |
|
Application Development Features |
|
|
ASP.NET |
ASPNET |
|
.NET Extensibility |
NetFxExtensibility |
|
ASP |
ASP |
|
CGI |
CGI |
|
ISAPI Extensions |
ISAPIExtensions |
|
ISAPI Filters |
ISAPIFilter |
|
Server-Side Includes |
ServerSideInclude |
|
Health and Diagnostics |
|
|
HTTP Logging |
HttpLogging |
|
Logging Tools |
LoggingLibraries |
|
Request Monitor |
RequestMonitor |
|
Tracing |
HttpTracing |
|
Custom Logging |
CustomLogging |
|
ODBC Logging |
ODBCLogging |
|
Security |
|
|
Basic Authentication |
BasicAuthentication |
|
Windows Authentication |
WindowsAuthentication |
|
Digest Authentication |
DigestAuthentication |
|
Client Certificate Mapping Authentication |
ClientCertificateMappingAuthentication |
|
IIS Client Certificate Mapping Authentication |
IISClientCertificateMappingAuthentication |
|
URL Authorization |
Authorization |
|
Request Filtering |
RequestFiltering |
|
IP and Domain Restrictions |
IPSecurity |
|
Performance Features |
|
|
Static Content Compression |
HttpCompressionStatic |
|
Dynamic Content Compression |
HttpCompressionDynamic |
|
Management Tools |
|
|
IIS Management Console |
ManagementConsole |
|
IIS Management Scripts and Tools |
ManagementScriptingTools |
|
Management Service |
AdminService |
|
IIS 6 Management Compatibility |
|
|
IIS Metabase Compatibility |
Metabase |
|
IIS 6 WMI Compatibility |
WMICompatibility |
|
IIS 6 Scripting Tools |
LegacyScripts |
|
IIS 6 Management Console |
LegacySnapin |
|
FTP Publishing Service |
|
|
FTP Server |
FTPServer |
|
FTP Management snap-in |
LegacySnapin |
|
Windows Process Activation Service |
|
|
Process Model |
ProcessModel |
|
.NET Environment |
NetFxEnvironment |
|
Configuration APIs |
WASConfigurationAPI |
编程中检查IIS7组件的安装情况的更多相关文章
- 条款十七: 在operator=中检查给自己赋值的情况
在赋值运算符中要特别注意可能出现别名的情况,其理由基于两点.其中之一是效率.如果可以在赋值运算符函数体的首部检测到是给自己赋值,就可以立即返回,从而可以节省大量的工作,否则必须去实现整个赋值操作. 另 ...
- Laravel 如何在blade文件中使用Vue组件
Laravel 如何在blade文件中使用Vue组件 1. 安装laravel/ui依赖包 composer require laravel/ui 2.生成vue基本脚手架 php artisan u ...
- vs安装部署“必备”组件里面正常情况没有出现office2010 PIA组件
vs安装部署“必备”组件里面正常情况没有出现office2010 pia组件时,将 Office2010PIARedist 文件夹放在C:\Program Files\Microsoft SDKs\W ...
- 浅析C#组件编程中的一些小细节
控件与组件的区别(Control&Component的区别) 作者:作者不详 发布日期:2011-06-30 12:08:41 控件与组件的区别(Control&Component的 ...
- 大数据学习day13------第三阶段----scala01-----函数式编程。scala以及IDEA的安装,变量的定义,条件表达式,for循环(守卫模式,推导式,可变参数以及三种遍历方式),方法定义,数组以及集合(可变和非可变),数组中常用的方法
具体见第三阶段scala-day01中的文档(scala编程基础---基础语法) 1. 函数式编程(https://www.cnblogs.com/wchukai/p/5651185.html): ...
- WinForm中的ListBox组件编程
ListBox组件是一个程序设计中经常使用到的组件,在Visual C#和Visual Basic .Net程序中使用这个组件,必须要在程序中导入.Net FrameWork SDK中名称空间Syst ...
- 简述C#中IO的应用 RabbitMQ安装笔记 一次线上问题引发的对于C#中相等判断的思考 ef和mysql使用(一) ASP.NET/MVC/Core的HTTP请求流程
简述C#中IO的应用 在.NET Framework 中. System.IO 命名空间主要包含基于文件(和基于内存)的输入输出(I/O)服务的相关基础类库.和其他命名空间一样. System.I ...
- (转)Attribute在.net编程中的应用
Attribute在.net编程中的应用(一)Attribute的基本概念 经常有朋友问,Attribute是什么?它有什么用?好像没有这个东东程序也能运行.实际上在.Net中,Attribute是一 ...
- [转]Attribute在.net编程中的应用
Attribute在.net编程中的应用(一) Attribute的基本概念 经常有朋友问,Attribute是什么?它有什么用?好像没有这个东东程序也能运行.实际上在.Net中,Attribute是 ...
随机推荐
- win7下android开发环境搭建(win7 64位)
win7下android开发环境搭建(win7 64位) 一.安装 JDK 下载JDK最新版本,下载地址如下: http://www.oracle.com/technetwork/java/jav ...
- Mysql Innodb 表碎片整理
一.为什么会产生碎片 简单的说,删除数据必然会在数据文件中造成不连续的空白空间,而当插入数据时,这些空白空间则会被利用起来.于是造成了数据的存储位置不连续,以及物理存储顺序与理论上的排序顺序不同,这种 ...
- Pycharm(五)安装库和虚拟环境
随便进入一个项目 进入设置 Ctrl + alt + S Project ********* - Project Interpreter ******是你的项目名字 Project I ...
- Java语言的概述
- DIY微型操作系统(2)—— 寄存器赋值
书上已经为我们提供了最简单的“hello world”程序了 相信大家玩的也挺欢乐的,不过这只是引导扇区的雏形 而且如果找不到完整的光盘上的源代码,新手估计很难学的下去 所以之后文中也会尽量贴出代码 ...
- 隔行扫瞄/逐行扫瞄的介绍(Interlaced / Progressive)
隔行扫瞄/逐行扫瞄的介绍(Interlaced / Progressive) 本篇不是着重在理论说明, 而是实际验証结果的分享, 所以只简略解释何谓交错与非交错, 请参考如后. 交错扫瞄(隔行扫瞄 ...
- Java中线程同步的方法
同步方法 即有synchronized关键字修饰的方法. 由于java的每个对象都有一个内置锁,当用此关键字修饰方法时, 内置锁会保护整个方法.在调用该方法前,需要获得内置锁,否则就处于阻塞状态. 注 ...
- 服务器购买+建站流程教程——适合新手没有经验的人Chinar总结
服务器购买购买教程 本文提供全图文流程,中文翻译. Chinar 坚持将简单的生活方式,带给世人!(拥有更好的阅读体验 -- 高分辨率用户请根据需求调整网页缩放比例) Chinar -- 心分享.心创 ...
- Shader的基本用法和语法结构
Shader的基本用法和语法结构 本文提供全流程,中文翻译.Chinar坚持将简单的生活方式,带给世人!(拥有更好的阅读体验 -- 高分辨率用户请根据需求调整网页缩放比例) 1 Introductio ...
- HDU1702:ACboy needs your help again!
ACboy needs your help again! Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K ( ...