by kusakari
14. 1月 2010 18:37
以前、IIS7.5のコンポーネント一覧とコマンドからのインストール で pkgmgr を使ったIISのインストールを投稿しましたが、今回は dism を使ってインストールをしてみたいと思います。
下記の、DISMコマンドを実行した場合...。
dism /online /enable-feature /featurename:IIS-WebServerRole /featurename:IIS-NetFxExtensibility /featurename:IIS-ISAPIFilter /featurename:IIS-ISAPIExtensions /featurename:IIS-ASPNET /featurename:IIS-ASP /featurename:IIS-CGI /featurename:IIS-HttpRedirect /featurename:IIS-ServerSideIncludes /featurename:IIS-HttpTracing /featurename:IIS-CustomLogging /featurename:IIS-ODBCLogging /featurename:IIS-BasicAuthentication /featurename:IIS-WindowsAuthentication /featurename:IIS-DigestAuthentication /featurename:IIS-ClientCertificateMappingAuthentication /featurename:IIS-IISCertificateMappingAuthentication /featurename:IIS-URLAuthorization /featurename:IIS-IPSecurity /featurename:IIS-HttpCompressionDynamic /featurename:IIS-LoggingLibraries
結果は下図のようになります。

dismのパッケージ一覧を確認する場合は、下記コマンドを実行します。
dism /online /get-features
また、特定のパッケージの情報を確認するには、下記のように「get-featureinfo」を使います。
dism /online /get-featureinfo:IIS-WebServerRole
d4809be6-98d2-46e2-bad0-f1cbad058255|0|.0