2

我有适用于 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 吗?

有没有人有像 dism 命令这样的 XP 命令?

谢谢!

4

1 回答 1

0

另请参阅创建应答文件 (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
于 2013-12-04T10:19:31.647 回答