以指令管理 Windows Server 2008 的角色

發佈日期: 2007 年 9 月 14 日

作者: 賴榮樞
http://www.goodman-lai.idv.tw

有人喜歡按滑鼠,有人喜歡敲鍵盤;前者會喜歡《管理 Windows Server 2008 的伺服器角色》介紹的 Server Manager,而 ServerManagerCmd 更適合喜歡敲鍵盤的人。本文將說明管理 Windows Server 2008 角色的 ServerManagerCmd 指令,包括角色的查詢、安裝、移除,以及 ServerManagerCmd 所使用的 XML 應答檔,並且也會說明如何利用 XSLT 技術將 ServerManagerCmd 查詢結果的XML檔轉換成 XML 應答檔。最後也於文後的附錄列出用於 ServerManagerCmd 指令的各種 Id,提供管理人員參考。

本頁內容

顯示使用說明及版本資訊
查詢目前已經安裝及可以安裝的資訊
安裝與移除
利用 XML 應答檔
轉換 ServerManagerCmd 查詢結果的 XML 檔
結語
附錄:ServerManagerCmd 的角色、角色服務及特徵的 Id 整理

管理者除了可以利用 GUI 的 Server Manager 所提供的 Add Roles Wizard、Add Role Services Wizard、Add Features Wizard、Remove Roles Wizard、Remove Role Services Wizard、Remove Features Wizard 等 6 種精靈來加入或移除角色、角色服務、特徵,也可以利用命令列工具 ServerManagerCmd.exe;這是 Server Manager 所提供的命令列工具,讓管理者能在執行 Windows Server 2008 的伺服器部署 (包括安裝和移除) 角色、角色服務、特徵。

ServerManagerCmd 可以用參數控制要安裝或移除的角色、角色服務、特徵,這種方式一次只能安裝或移除一個角色、角色服務、或特徵;或者也可以利用XML應答檔 (answer file) 來控制 ServerManagerCmd,這種方式就能同時安裝或移除數個角色、角色服務、或特徵。ServerManagerCmd 也可以讓管理者檢視其運作記錄 (log),並且查詢已經安裝和可以安裝的角色、角色服務、特徵。

顯示使用說明及版本資訊

ServerManagerCmd 的參數不少,但如同大多數的命令列指令,ServerManagerCmd 也可以線上顯示使用說明,用法如下:

ServerManagerCmd

ServerManagerCmd /?

ServerManagerCmd -?

ServerManagerCmd -help

此外,利用-version可以顯示ServerManagerCmd的版本序號:

ServerManagerCmd -version

查詢目前已經安裝及可以安裝的資訊

ServerManagerCmd 提供查詢的功能,可以讓管理者查詢所有已經安裝和可以安裝的角色、角色服務、特徵。以下是 ServerManagerCmd 查詢功能的完整語法:

ServerManagerCmd -query [<queryResult.xml>] [-logPath <log.txt>]

我們從最簡單的用法開始說明:

ServerManagerCmd -query

ServerManagerCmd -q

執行之後,ServerManagerCmd 會在命令提示字元視窗列出所有已經安裝 (以綠色顯示) 和可以安裝 (以白色顯示) 的角色、角色服務、特徵,除了會以縮排顯示子項目,也會以X註記表示已經安裝 (如圖 1)。

圖 1

圖 1

不過命令提示字元視窗並不方便瀏覽這種作法的結果,更好的作法是將另外將查詢的結果存成檔案(而且所儲存的檔案還另有用途,這點在稍後的《轉換 ServerManagerCmd 查詢結果的 XML 檔》會說明):

ServerManagerCmd -query queryResult.xml

執行上述指令雖然也會再命令提示字元視窗顯示查詢結果,但更重要的是,查詢結果也會以 XML 格式存入指定的檔案 (queryResult.xml);此外,如果不指定檔案的副檔名,查詢結果還是 XML 格式,只是檔案的副檔名沒有 .xml (但沒有副檔名反而不方便在檔案總管利用檔案關聯來處理檔案)。

圖 2

圖 2

圖 2 是以 Internet Explorer 顯示的查詢結果檔案 queryResult.xml,以下列出其中的一小段來說明這種 XML 的結構 (這種 XML 檔案不僅會用在 ServerManagerCmd 的查詢,對安裝和移除也很有幫助)。

<Role DisplayName="DHCP Server" Installed="false" Id="DHCP" />
<Role DisplayName="DNS Server" Installed="false" Id="DNS" />
<Role DisplayName="Fax Server" Installed="false" Id="Fax" />

ServerManagerCmd 可以處理角色、角色服務、特徵,因此在其 XML 檔案會有分別對應到角色、角色服務、特徵的 <Role>、<RoleService>、<Feature> 等三種標記 (tag)。標記裡各有數種特性 (attribute):上述的 DisplayName 表示該項目顯示於外的名稱 (如果該項目是角色,就是角色名稱);Installed 表示安裝的狀態,其值若為 false,表示尚未安裝,若是 True,表示已經安裝;Id 則是用在命令列、XML 檔案、或指令碼的名稱,例如 DHCP Server 角色的 Id 為 DHCP,如果要以 ServerManagerCmd 安裝這個角色,就要使用這個角色的 Id,也就是 DHCP (文後的《ServerManagerCmd 的角色、角色服務及特徵的 Id 整理》,可以讓您找到這些 Id)。

<Role DisplayName="File Services" Installed="true">
	<RoleService DisplayName="File Server" Installed="true" Id="FS-FileServer" Default="true" />
	<RoleService DisplayName="Distributed File System" Installed="false" Id="FS-DFS">
		<RoleService DisplayName="DFS Namespaces" Installed="false" Id="FS-DFS-Namespace" />
		<RoleService DisplayName="DFS Replication" Installed="false" Id="FS-DFS-Replication" />
	</RoleService>
	<RoleService DisplayName="File Server Resource Manager" Installed="true" Id="FS-Resource-Manager" />
...
	<RoleService DisplayName="Windows Server 2003 File Services" Installed="false" Id="FS-Win2003-Services">
		<RoleService DisplayName="File Replication Service" Installed="false" Id="FS-Replication" />
		<RoleService DisplayName="Indexing Service" Installed="false" Id="FS-Indexing-Service" />
	</RoleService>
</Role>

角色、角色服務、特徵可能另需其他角色、角色服務、或特徵支援,像這種情況,會以縮排來表示這種關係。

<Role DisplayName="Windows SharePoint Services" Installed="false" Id="Windows-SharePoint">
	<Setting Name="InstallAsPartOfServerFarm" Default="false" Description="This setting determines how SharePoint will be installed.">
		<Value Name="true" Description="SharePoint will be install as part of the server farm." />
		<Value Name="false" Description="SharePoint will be install as single server." />
	</Setting>
	<Setting Name="Language" Default="en-us" Description="This setting determines which language of SharePoint will be installed.">
		<Value Name="ar-sa" Description="Arabic" />
		<Value Name="zh-cn" Description="Chinese (China)" />
		<Value Name="zh-tw" Description="Chinese (Taiwan)" />
		<Value Name="cs-CZ" Description="Czech" />
...
		<Value Name="th-th" Description="Thai" />
		<Value Name="tr-tr" Description="Turkish" />
	</Setting>

許多安裝好的角色、角色服務、特徵具有某些設定值,這些設定值或許是在安裝時指定、或許是管理者在系統運作時更改,而 ServerManagerCmd 的 XML 查詢結果,也會記錄這些設定值。如上述的 <Setting> 標記:Name 特性是設定項目的名稱、Default 特性是設定項目的預設值、Description 特性是設定項目的說明。在 <Setting< 標記之下還會以 <Value< 標記列出設定項目的值:Name 特性的內容就是設定值、Description 特性是設定值的說明。

將查詢結果存入 XML 檔案能方便管理者瞭解伺服器已安裝的角色、角色服務、特徵,甚至可以在不同的伺服器使用這項功能,並以 XML 格式的結果來比較。

ServerManagerCmd 可以查詢已經安裝和可以安裝的角色、角色服務、特徵 (-q 可以代替 -query),並且將查詢結果存入 XML 檔案 (但螢幕還是會顯示結果);甚至還可以再加上 -logPath 參數,將 ServerManagerCmd 運作時的 log 記錄存入文字檔:

ServerManagerCmd -q queryResult.xml -logPath query.log

安裝與移除

安裝

ServerManagerCmd 也可以用來安裝角色、角色服務、或特徵,以下是 ServerManagerCmd 安裝功能的完整語法:

ServerManagerCmd -install <command-Id> [-setting <setting-name>=<setting value>]*
[-allSubFeatures] [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

例如若想安裝 Message Queuing,可以在命令提示字元視窗輸入以下命令:

ServerManagerCmd -install "MSMQ" -logPath istlMSMQ.log

MSMQ 是 Message Queuing 的 Id (Message Queuing 是 MSMQ 顯示於外的名稱),文後的《ServerManagerCmd 的角色、角色服務及特徵的 Id 整理》,可以讓您找到這些 Id;此外,也可以加上 -logPath 參數並指定檔名來產生安裝過程的記錄檔。有時候在安裝 (或移除) 之後,可能需要重開機,可以加上 -restart 參數讓 ServerManagerCmd 自動重開機。

如果需要的話,安裝時也可以指定相關的設定值,例如利用 ServerManagerCmd 安裝 Windows SharePoint Services 的時候,一起將語系指定成適用於台灣的正體中文:

ServerManagerCmd -install "Windows-SharePoint" -setting "Language"="zh-tw"

我們可以利用 -resultPath 參數並指定檔名,讓 ServerManagerCmd 將執行結果以 XML 格式存入指定的檔案 (istlResult.xml),例如:

ServerManagerCmd -install "PowerShell " -logPath istl PowerShell.log -resultPath istlResult.xml

以下是 istlResult.xml 的內容:

<ServerManagerConfigurationResult Action="Install" Time="2007-09-03T16:32:31" Language="en-US" RequiresReboot="false" Success="true" xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
	<Message Level="Information">Start Installation...</Message>
<Feature DisplayName="Windows PowerShell" Id="PowerShell" RequestedBy="UserSpecified" Success="true" RequiresReboot="false">
	<Message Level="Information">[Installation] Succeeded: [Windows PowerShell].</Message>
</Feature>
	<Message Level="Information">Success: Installation succeeded.</Message>
</ServerManagerConfigurationResult>
</code>

從上述我們可以看到執行的動作是安裝、安裝的特徵是 PowerShell、執行的時間、不需要重開機、執行結果為成功。

此外,還有一個很實用的參數可以讓您瞭解安裝 (或移除) 過程,但不需要真的安裝 (或移除);透過以下的指令,可以在 installPowershell.log 檔案裡看到 ServerManagerCmd 安裝 PowerShell 的過程,但實際上並不會安裝 PowerShell:

ServerManagerCmd -install "PowerShell" -whatIf -logPath istlPowershell.log

移除

基本上,移除可視為安裝的反向動作,雖然有許多相同參數,但也簡化了若干參數,以下是 ServerManagerCmd 移除功能的完整語法:

ServerManagerCmd -remove <command-Id> [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

上述參數的用法均與 ServerManagerCmd 的安裝功能 (-install) 相同,例如以下的例子會移除 Message Queuing,並將執行過程以純文字格式記錄在 istlMSMQ.log、將執行結果以 XML 格式記錄在 istlResult.xml,而且執行完畢後會自動重開機:

ServerManagerCmd -remove "MSMQ" -logPath istlMSMQ.log -restart -resultPath istlResult.xml

利用 XML 應答檔

還有一種安裝的方式,是利用 XML 格式的應答檔,尤其若想要一次部署好幾個角色、角色服務、特徵,就無法利用 ServerManagerCmd 的 -install 或 -remove,而必須利用 -inputPath 參數並搭配應答檔。此外,也可以利用應答檔來配置角色、角色服務、特徵的設定。以下是一個簡單的應答檔 installMSMQ.xml:

<ServerManagerConfiguration Action="Install" xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
	<Feature Id="MSMQ"/>
</ServerManagerConfiguration>

這個簡單的應答檔指定了動作為安裝、動作的特徵 Id 是 MSMQ。接著就能利用 ServerManagerCmd 的 -inputPath 參數,並指定應答檔的路徑及檔名,ServerManagerCmd 就會根據應答檔的內容進行安裝或移除;以下是利用應答檔的完整語法:

ServerManagerCmd -inputPath <answer.xml> [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

上述語法除了-inputPath 之外的參數用法,都與之前說明的相同。以下是利用應答檔部署的簡單例子 (當然還可以再加上 -resultPath、-logPath 等參數):

ServerManagerCmd - inputPath installMSMQ.xml

任何的 ServerManagerCmd 應答檔都必須包含以下的標頭項目 (Action 特性可指定成 install 或 remove):

<ServerManagerConfiguration Action="  " xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
	
</ServerManagerConfiguration>

例如以下的應答檔會安裝 Windows SharePoint Services,並且因為將 InstallAsPartOfServerFarm 指定成 false、Language 指定成 zh-tw,所以會以單一伺服器執行所安裝的 Windows SharePoint Services、語系為正體中文。

<ServerManagerConfiguration Action="Install" xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
<Role Id="Windows-SharePoint">
	<Setting Name="InstallAsPartOfServerFarm">false</Setting> 
	<Setting Name="Language"> zh-tw</Setting> 
</Role>
</ServerManagerConfiguration>

以下是另一個應答檔的例子,分別安裝了 DNS Server、Web Server (IIS)、Terminal Services Gateway、Message Queuing Server、Windows SharePoint Services、完整的 .NET Framework 3.0:

<ServerManagerConfiguration Action="Install"
xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
<Role Id="DNS"/>
<Role Id="Web-Server"/>
<RoleService Id="TS-Gateway"/>
<Role Id="Windows-SharePoint">
	<Setting Name="InstallAsPartOfServerFarm">false</Setting> 
	<Setting Name="Language"> zh-tw</Setting> 
</Role>
<Feature Id="MSMQ-Server"/>
<Feature Id="Net-Framework" InstallAllSubFeatures="true"/>
</ServerManagerConfiguration>

應答檔也可以用在移除,例如以下的例子移除了 DNS Server、Terminal Services Gateway、完整的 .NET Framework 3.0 (請注意標頭的 Action 特性值是 Remove):

<ServerManagerConfiguration Action="Remove"
xmlns="https://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1">
<Role Id="DNS"/>
<RoleService Id="TS-Gateway"/>
<Feature Id="Net-Framework"/>
</ServerManagerConfiguration>

如果使用圖形介面的 Server Manager,精靈會確認您安裝所需要的所有軟體,如果必要的話,精靈還會提示您需要再安裝其它的角色、角色服務、或特徵才能完成您所選擇的安裝。使用 ServerManagerCmd 也是如此,如果您只想要安裝或移除部分的角色或特徵,就必須自行指定才行。您不需要您要安裝的角色服務指定所有必要的角色和角色服務,因為 ServerManagerCmd 會根據角色服務的相依關係安自動裝或移除軟體。

如果利用應答檔移除角色,ServerManagerCmd 會自訂移除應答檔所指定的角色或角色服務相關的所有角色和角色服務;想要知道 ServerManagerCmd 會移除哪些相關的角色和角色服務嗎?這就是利用 -whatif 參數的最佳時機。

舉例來說,如果想要安裝 Internet Printing (Print Services 的角色服務),您的應答檔只需要指定 Internet Printing,不需要指定 Web Server (IIS)或 Web Server (IIS) 的角色服務,因為 ServerManagerCmd 預設就會安裝 Web Server (IIS) 或其他執行 Internet Printing 所需要的角色。如果使用相同的應答檔來移除同一部伺服器裡的 Windows SharePoint Services 角色,因為 Windows SharePoint Services 也需要部分的 Web Server (IIS) 才能執行,因此 ServerManagerCmd 會移除 Windows SharePoint Services 需要但保留 Internet Printing 不需要的 Web Server (IIS) 角色服務。

某些角色、角色服務、特徵還包含了 Server Manager 預設會安裝或移除的子項目,精靈或 ServerManagerCmd 都會自動選取這類的子項目。舉例來說,若以應答檔安裝 Print Services 角色,也會自動安裝 Print Server 角色服務;但如果以應答檔移除 Print Services,結果會移除整個角色。

使用應答檔的原則,是明確的指定要安裝或移除的項目,因為許多項目有上、下的從屬關係,而安裝上層,往往會順帶安裝許多下層的子項目,如果下層裡有您不想安裝的子項目,就不要指定安裝上層,而應該指定您想安裝的子項目,尤其在移除的時候,更應該遵循這樣的原則,以免移除不該移除的項目而讓系統無法運作。

舉例來說,如果想安裝 Print Services 的 Internet Printing 角色服務,應答檔就應該只指定 Internet Printing,而不需要指定 Print Services 或其他 Print Services 的角色服務。

轉換 ServerManagerCmd 查詢結果的 XML 檔

ServerManagerCmd 的 -query 和 -inputPath 參數使用了 XML 作為檔案格式。當我初探這兩個參數時,曾經以為 -query 查詢結果的 XML 檔案,可以作為 -inputPath 需要的 XML 檔案;若然,先在某一部伺服器部署、測試好所有的角色、角色服務、或特徵,再以 -query 查詢得到 XML 檔,後將這個 XML 檔搭配 ServerManagerCmd 及 -inputPath 參數,就可以在其他伺服器部署相同的角色、角色服務、或特徵。但事實上,這兩個參數的 XML 結構並不相同。

不過這並不表示行不通,只是要多花點功夫轉換。XML 格式最大的優點,就是容易轉換,而 XSLT (Extensible Stylesheet Language Transformations) 就是用來轉換 XML 資料的技術。要做這樣的轉換,除了需要轉換器,還需要轉換用的 XSL 檔案。所幸微軟已經將這些工具都準備好了。

首先請到微軟的下載中心取得 msxsl.exe,這是不需安裝即可執行的 XSL 命令列轉換工具。接著再到微軟 Windows Server 部門官方部落格的 Transforming ServerManagerCmd query xml to input xml 文章,微軟的工程師 Travis Nielsen 貢獻了三個轉換所需要的 XSL 檔案,請將文中提及的 Install.xsl、Remove.xsl、View.xsl 的內容,分別複製、貼到文字處理程式,並存成相對應的檔名。

View.xsl 的用法最為單純。雖然現今的網頁瀏覽器都可以直接顯示 XML 檔案內容,但因為也會直接顯示標記,所以乍看之下會一團亂;而 View.xsl 可以將 -query 查詢到的 XML 檔 (假設名為 queryResult.xml) 轉換成網頁瀏覽器能顯示的更清楚的 HTML 格式。利用以下的指令,可以將 queryResult.xml 轉換成 HTML 格式:

msxsl queryResult.xml View.xsl -o queryResult.html

圖 3 就是以 Internet Explorer 顯示轉換後的 queryResult.html,究其內容,queryResult.html 和 queryResult.xml (如圖 2) 都相同,但不同的格式也會影響觀看的便利。

圖 3

圖 3

Install.xsl 和 Remove.xsl 則是功能類似但目的相反。前述的 queryResult.xml 包含了已安裝和可以安裝 (也就是未安裝) 的角色、角色服務、或特徵,利用 Install.xsl 轉換 queryResult.xml 之後的 XML 檔,不僅結構符合 -inputPath 所需,而且等於是擷取出 queryResult.xml 裡的已安裝項目,因此就能在其他伺服器部署出完全相同的角色、角色服務、特徵配置。要達到上述的轉換,請執行以下的指令,就可以將轉換之後的 install.xml 搭配 -inputPath 使用:

msxsl queryResult.xml install.xsl -o install.xml

而 Remove.xsl 除了轉換結構,也等於是擷取出 queryResult.xml 未安裝的項目,若用在其他伺服器,可讓其他伺服器的角色、角色服務、特徵未安裝項目,與查詢得到 queryResult.xml 的伺服器相同。執行以下的指令,將能達到上述轉換,並且可以將轉換後的 remove.xml 搭配 -inputPath 使用:

msxsl queryResult.xml remove.xsl -o remove.xml

結語

指令的好處是可以將指令存成批次檔而重複使用,如果管理的伺服器數量眾多,指令也比圖形工具更為彈性、方便。ServerManagerCmd 最大的優點在於可以利用應答檔一次部署多個角色、角色服務、或特徵,而且過程當中不需要管理者介入操作。應答檔的確相當方便,縱使有些複雜,也非常值得管理者好好研究一番;使用應答檔最需要注意的,應該就是上、下層的從屬關係,而面對這種情況的原則,就是明確的指定想要安裝或移除項目。

本文也說明了如何將 ServerManagerCmd 查詢結果的XML檔轉換成 XML 應答檔。雖然這兩種 XML 檔案的結構不同,但憑藉著 XML 與生俱來就易於轉換的特性,以及微軟提供的免費轉換工具和 XSLT 檔案,很容易就能將 ServerManagerCmd 查詢結果的 XML 檔,轉換成 -inputPath 所需要的 XML 應答檔。

參考資料

附錄:ServerManagerCmd 的角色、角色服務及特徵的 Id 整理

角色、角色服務的顯示名稱

角色、角色服務的 Id

DHCP Server

DHCP

Print Services

  • Print Server

  • Internet Printing

  • LPD Service

Print-Server

  • Print-Services

  • Print-Internet

  • Print-LPD-Service

Terminal Services

  • Terminal Server

  • TS Licensing

  • TS Gateway

  • TS Web Access

  • TS Session Broker

Terminal-Services

  • TS-Terminal-Server

  • TS-Licensing

  • TS-Gateway

  • TS-Web-Access

  • TS-Session-Broker

Active Directory Domain Services

  • Active Directory Domain Controller

  • Identity Management for UNIX

  • Server for Network Information Service

  • Password Synchronization

  • ADDS-Domain-Controller

  • ADDS-Identity-Management

  • ADDS-NIS

  • ADDS-Password-Sync

DNS Server

DNS

File Services

  • Distributed File System (DFS)

  • DFS Namespace

  • DFS Replication

  • File Server Resource Manager

  • Services for Network File System

  • Windows Search Service

  • Windows Server 2003 File Services

  • File Replication Service

  • Indexing Service

  • FS-DFS

  • FS-DFS-Namespace

  • FS-DFS-Replication

  • FS-Resource-Manager

  • FS-NFS-Services

  • FS-Search-Service

  • FS-Win2003-Services

  • FS-Replication

  • FS-Indexing-Service

Web Server (IIS)

  • Internet Information Services

  • Common HTTP Features

  • Static Content

  • Default Document

  • Directory Browsing

  • HTTP Errors

  • HTTP Redirection

  • Application Development

  • ASP.NET

  • .NET Extensibility

  • ASP

  • CGI

  • ISAPI Extensions

  • ISAPI Filters

  • Server Side Includes

  • Health and Diagnostics

  • HTTP Logging

  • Logging Tools

  • Request Monitor

  • Tracing

  • Custom Logging

  • ODBC Logging

  • Security

  • Basic Authentication

  • Windows Authentication

  • Digest Authentication

  • Client Certificate Mapping Authentication

  • IIS Client Certificate Mapping Authentication

  • URL Authorization

  • Request Filtering

  • IP and Domain Restrictions

  • Performance

  • Static Content Compression

  • Dynamic Content Compression

  • Management Tools

  • IIS Management Console

  • IIS Management Scripts and Tools

  • Management Service

  • IIS 6 Management Compatibility

  • IIS 6 Metabase Compatibility

  • IIS 6 WMI Compatibility

  • IIS 6 Scripting Tools

  • IIS 6 Management Console

  • FTP Publishing Service

  • FTP Server

  • FTP Management Console

Web-Server

  • Web-WebServer

  • Web-Common-Http

  • Web-Static-Content

  • Web-Default-Doc

  • Web-Dir-Browsing

  • Web-Http-Errors

  • Web-Http-Redirect

  • Web-App-Development

  • Web-Asp-Net

  • Web-Net-Ext

  • Web-ASP

  • Web-CGI

  • Web-ISAPI-Ext

  • Web-ISAPI-Filter

  • Web-Includes

  • Web-Health

  • Web-Http-Logging

  • Web-Log-Libraries

  • Web-Request-Monitor

  • Web-Http-Tracing

  • Web-Custom-Logging

  • Web-ODBC-Logging

  • Web-Security

  • Web-Basic-Auth

  • Web-Windows-Auth

  • Web-Digest-Auth

  • Web-Client-Auth

  • Web-Cert-Auth

  • Web-Url-Auth

  • Web-Filtering

  • Web-IP-Security

  • Web-Performance

  • Web-Stat-Compression

  • Web-Dyn-Compression

  • Web-Mgmt-Tools

  • Web-Mgmt-Console

  • Web-Scripting-Tools

  • Web-Mgmt-Service

  • Web-Mgmt-Compat

  • Web-Metabase

  • Web-WMI

  • Web-Lgcy-Scripting

  • Web-Lgcy-Mgmt-Console

  • Web-Ftp-Publishing

  • Web-Ftp-Server

  • Web-Ftp-Mgmt-Console

Windows SharePoint Services

Windows-SharePoint

Active Directory Federation Services

  • Federation Service

  • Federation Service Proxy

  • Web Agents

  • Claims-aware Agent

  • Windows Token-based Agent

  • ADFS-Federation

  • ADFS-Proxy

  • ADFS-Web-Agents

  • ADFS-Claims

  • ADFS-Windows-Token

Active Directory Lightweight Directory Services

ADLDS

Application Server

  • Application Server Core

  • Web Server Support

  • COM+ Network Access

  • TCP Port Sharing

  • Windows Process Activation Service Support

  • HTTP Activation

  • Message Queuing Activation

  • TCP Activation

  • Named Pipes Activation

  • Distributed Transaction Support

  • Incoming Remote Transactions

  • Outgoing Remote Transactions

  • WS-Atomic Transaction Support

Application-Server

  • AS-AppServer-Core

  • AS-Web-Support

  • AS-Ent-Services

  • AS-TCP-Port-Sharing

  • AS-WAS-Support

  • AS-HTTP-Activation

  • AS-MSMQ-Activation

  • AS-TCP-Activation

  • AS-Named-Pipes

  • AS-Dist-Transaction

  • AS-Incoming-Trans

  • AS-Outgoing-Trans

  • AS-WS-Atomic

Active Directory Certificate Services

  • Certification Authority

  • Certification Authority Web Enrollment
    (無法以此命令列安裝)

  • Online Certificate Status Protocol

  • Microsoft Simple Certificate Enrollment Protocol
    (無法以此命令列安裝)

  • ADCS-Cert-Authority

  • ADCS-Online-Cert

Fax Server

Fax

Network Policy and Access Services

  • Network Policy Server

  • NPAS Routing and Remote Access Services

  • Remote Access Service

  • Routing

  • Health Registration Authority

NPAS

  • NPAS-Policy-Server

  • NPAS-RRAS-Services

  • NPAS-RRAS

  • NPAS-Routing

  • NPAS-Health

Active Directory Rights Management Services (AD RMS)
(無法以此命令列安裝)

  • Rights Management Server

 

UDDI Services
(無法以此命令列安裝)

  • UDDI Services Web Application

  • UDDI Services Database

 

Windows Deployment Services

WDS

特徵

特徵的 Id

Failover Clustering

Failover-Clustering

Network Load Balancing

NLB

Desktop Experience

Desktop-Experience

.NET Framework 3.0 Features

  • .NET Framework 3.0

  • XPS Viewer

  • Windows Communication Foundation Activation Components

  • HTTP Activation

  • Non-HTTP Activation

NET-Framework

  • NET-Framework-Core

  • NET-XPS-Viewer

  • NET-Win-CFAC

  • NET-HTTP-Activation

  • NET-Non-HTTP-Activation

Windows System Resource Manager

WSRM

Wireless Networking

Wireless-Networking

Windows Server Backup

Backup

WINS Server

WINS Server

Remote Assistance

Remote Assistance

Simple TCP/IP Services

Simple-TCPIP

Telnet Client

Telnet Client

Telnet Server

Telnet-Server

Subsystem for UNIX-based Applications

Subsystem-UNIX-Apps

RPC over HTTP Proxy

RPC-over-HTTP-Proxy

SMTP Server

SMTP-Server

LPR Port Monitor

LPR-Port-Monitor

Storage Manager for SANs

Storage-Mgr-SANS

BITS Server Extensions

BITS

Message Queuing

  • Message Queuing Services

  • Message Queuing Server

  • Directory Service Integration

  • Message Queuing Triggers

  • HTTP Support

  • Multicasting Support

  • Routing Service

  • Windows 2000 Client Support

  • Messaging Queue DCOM Proxy

MSMQ

  • MSMQ-Services

  • MSMQ-Server

  • MSMQ-Directory

  • MSMQ-Triggers

  • MSMQ-HTTP-Support

  • MSMQ-Multicasting

  • MSMQ-Routing

  • MSMQ-Routing

  • MSMQ-DCOM

Windows Process Activation Service

  • Process Model

  • .NET Environment

  • Configuration APIs

WAS

  • WAS-Process-Model

  • WAS-NET-Environment

  • WAS-Config-APIs

Windows Internal Database

Windows-Internal-DB

Windows-Internal-DB

BitLocker

Multipath I/O

Multipath I/O

Internet Storage Naming Server

ISNS

Removable Storage Manager

Removable-Storage

TFTP Client

TFTP-Client

SNMP Services

  • SNMP Services

  • SNMP WMI Provider

SNMP WMI Provider

  • SNMP-Service

  • SNMP-WMI-Provider

Services for Network File System

NFS-Services

Internet Printing Client

Internet-Print-Client

Peer Name Resolution Protocol

PNRP

Connection Manager Administration Kit

CMAK

Remote Server Administration Tools

  • Role administration tools

  • Active Directory Certificate Services

  • Web Server (IIS)

  • Terminal Services

  • TS RemoteApp

  • TS Gateway

  • TS Licensing

  • Feature administration tools

  • Failover Clustering

  • Network Load Balancing

RSAT

  • RSAT-Role-Tools

  • RSAT-ADCS

  • RSAT-Web-Server

  • RSAT-TS

  • RSAT-TS-RemoteApp

  • RSAT-TS-Gateway

  • RSAT-TS-Licensing

  • RSAT-Feature-Tools

  • RSAT-Clustering

  • RSAT-NLB

Windows PowerShell

PowerShell

Group Policy Management

GPMC

Quality Windows Audio Video Experience

Qwave