通过命令行在XP上安装IIS

时间:2012-11-28 11:21:46

标签: iis command-line windows-xp

我对Windows 7有这个命令:

dism /online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-CommonHttpFeatures /FeatureName:IIS-HttpErrors /FeatureName:IIS-HttpRedirect /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-Security /FeatureName:IIS-URLAuthorization /FeatureName:IIS-RequestFiltering /FeatureName:IIS-NetFxExtensibility /FeatureName:IIS-HealthAndDiagnostics /FeatureName:IIS-HttpLogging /FeatureName:IIS-LoggingLibraries /FeatureName:IIS-RequestMonitor /FeatureName:IIS-HttpTracing /FeatureName:IIS-IPSecurity /FeatureName:IIS-Performance /FeatureName:IIS-HttpCompressionDynamic /FeatureName:IIS-WebServerManagementTools /FeatureName:IIS-ManagementScriptingTools /FeatureName:IIS-ISAPIExtensions /FeatureName:IIS-ISAPIFilter /FeatureName:IIS-StaticContent /FeatureName:IIS-DefaultDocument /FeatureName:IIS-ASPNET /FeatureName:IIS-ASP /FeatureName:IIS-ServerSideIncludes /FeatureName:IIS-CustomLogging /FeatureName:IIS-BasicAuthentication /FeatureName:IIS-HttpCompressionStatic /FeatureName:IIS-ManagementConsole /FeatureName:IIS-ManagementService /FeatureName:IIS-WindowsAuthentication /FeatureName:IIS-DigestAuthentication /FeatureName:IIS-ClientCertificateMappingAuthentication /FeatureName:IIS-IISCertificateMappingAuthentication

但是dism命令对XP不起作用。 我搜索了互联网并找到了

sysocmgr

它是否像命令dism?

有没有人像XP一样拥有XP命令?

谢谢!

1 个答案:

答案 0 :(得分:0)

另见Creating an Answer File (IIS 6.0);

创建名为IIS_Unattended.txt的文件并指定所需的组件,例如:

[Components]
iis_www = ON
iis_common = ON
iis_inetmer = ON
aspnet = ON
complusnetwork = ON

执行以下命令开始安装:

Sysocmgr.exe /i:sysoc.inf /u:IIS_Unattended.txt