This topic includes the following references:
| • | The Server Manager command line XML answer file schema |
| • | Server Manager command-line syntax, examples, options, and parameters in the section Server Manager command line syntax and parameters |
The following section of code is the Server Manager command-line XML schema.
<?xml version="1.0" encoding="utf-8" ?> - <xs:schema targetNamespace="http://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1" xmlns="http://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> - <!-- ======================================================================================= --> - <!-- Root element for the input xml for install or remove. --> - <!-- ======================================================================================= --> - <xs:element name="ServerManagerConfiguration"> - <xs:complexType> - <xs:choice minOccurs="1" maxOccurs="unbounded"> <xs:element name="Role" type="FeatureType" minOccurs="0" /> <xs:element name="RoleService" type="FeatureType" minOccurs="0" /> <xs:element name="Feature" type="FeatureType" minOccurs="0" /> <xs:any namespace="##other" processContents="skip" minOccurs="0" /> </xs:choice> <xs:attribute name="Action" type="InstallationActionType" use="required" /> <xs:anyAttribute namespace="##other" processContents="skip" /> </xs:complexType> </xs:element> - <!-- ======================================================================================= --> - <!-- Root element for the results of an install or remove. --> - <!-- ======================================================================================= --> - <xs:element name="ServerManagerConfigurationResult"> - <xs:complexType> - <xs:choice minOccurs="1" maxOccurs="unbounded"> <xs:element name="Role" type="FeatureResultType" minOccurs="0" /> <xs:element name="RoleService" type="FeatureResultType" minOccurs="0" /> <xs:element name="Feature" type="FeatureResultType" minOccurs="0" /> <xs:element name="Message" type="MessageType" minOccurs="0" /> <xs:any namespace="##other" processContents="skip" minOccurs="0" /> </xs:choice> <xs:attribute name="Action" type="InstallationActionType" use="required" /> <xs:attribute name="RequiresReboot" type="xs:boolean" /> <xs:attribute name="Success" type="xs:boolean" /> <xs:attributeGroup ref="CommonOutputAttributes" /> <xs:anyAttribute namespace="##other" processContents="skip" /> </xs:complexType> </xs:element> - <!-- ======================================================================================= --> - <!-- Root element for querying the roles and features that are installed. --> - <!-- ======================================================================================= --> - <xs:element name="ServerManagerConfigurationQuery"> - <xs:complexType> - <xs:sequence> <xs:element name="Role" type="RoleQueryType" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Feature" type="FeatureQueryType" minOccurs="0" maxOccurs="unbounded" /> <xs:any namespace="##other" processContents="skip" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attributeGroup ref="CommonOutputAttributes" /> <xs:anyAttribute namespace="##other" processContents="skip" /> </xs:complexType> </xs:element> - <!-- ======================================================================================= --> - <!-- Supporting types for the install (or remove) input xml. --> - <!-- ======================================================================================= --> - <!-- Definition for roles, role services, and features --> - <xs:complexType name="FeatureType"> - <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Setting" type="SettingType" /> <xs:any namespace="##other" processContents="skip" /> </xs:choice> <xs:attribute name="Id" type="xs:string" use="required" /> - <!-- InstallAllSubFeatures is ignored for features without subfeatures and during remove. --> <xs:attribute name="InstallAllSubFeatures" type="xs:boolean" /> <xs:anyAttribute namespace="##other" processContents="skip" /> </xs:complexType> - <!-- Definition for settings --> - <xs:complexType name="SettingType"> - <xs:simpleContent> - <xs:extension base="xs:string"> <xs:attribute name="Name" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> - <!-- Install or Remove action --> - <xs:simpleType name="InstallationActionType"> - <xs:restriction base="xs:string"> <xs:enumeration value="Install" /> <xs:enumeration value="Remove" /> </xs:restriction> </xs:simpleType> - <!-- ======================================================================================= --> - <!-- Supporting types for the results output of an install or remove. --> - <!-- ======================================================================================= --> - <xs:complexType name="FeatureResultType"> - <xs:sequence> <xs:element name="Message" type="MessageType" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="DisplayName" type="xs:string" use="required" /> <xs:attribute name="Success" type="xs:boolean" /> <xs:attribute name="RootParent" type="xs:string" /> <xs:attribute name="Id" type="xs:string" /> <xs:attribute name="RequiresReboot" type="xs:boolean" /> <xs:attribute name="Skipped" type="xs:boolean" /> <xs:attribute name="RequestedBy" type="RequestedByType" /> </xs:complexType> - <xs:complexType name="MessageType"> - <xs:simpleContent> - <xs:extension base="xs:string"> <xs:attribute name="Level" use="required" type="LevelType" /> <xs:attribute name="Code" type="xs:integer" /> </xs:extension> </xs:simpleContent> </xs:complexType> - <xs:simpleType name="LevelType"> - <xs:restriction base="xs:string"> <xs:enumeration value="Error" /> <xs:enumeration value="Warning" /> <xs:enumeration value="Information" /> </xs:restriction> </xs:simpleType> - <xs:simpleType name="RequestedByType"> - <xs:restriction base="xs:string"> <xs:enumeration value="UserSpecified" /> <xs:enumeration value="Default" /> <xs:enumeration value="AllChildren" /> <xs:enumeration value="Dependency" /> </xs:restriction> </xs:simpleType> - <xs:attributeGroup name="CommonOutputAttributes"> <xs:attribute name="Time" type="xs:dateTime" /> <xs:attribute name="Sku" type="xs:string" /> <xs:attribute name="Language" type="xs:string" /> <xs:attribute name="Architecture" type="xs:string" /> </xs:attributeGroup> - <!-- ======================================================================================= --> - <!-- Supporting types for querying the roles and features that are installed. --> - <!-- ======================================================================================= --> - <xs:complexType name="RoleQueryType"> - <xs:sequence> <xs:element name="RoleService" type="RoleServiceQueryType" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Setting" type="SettingQueryType" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attributeGroup ref="FeatureQueryAttributes" /> </xs:complexType> - <xs:complexType name="RoleServiceQueryType"> - <xs:sequence> <xs:element name="RoleService" type="RoleServiceQueryType" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attributeGroup ref="FeatureQueryAttributes" /> </xs:complexType> - <xs:complexType name="FeatureQueryType"> - <xs:sequence> <xs:element name="Feature" type="FeatureQueryType" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attributeGroup ref="FeatureQueryAttributes" /> </xs:complexType> - <xs:complexType name="SettingQueryType"> - <xs:sequence> <xs:element name="Value" type="ValueQueryType" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="Description" type="xs:string" /> </xs:complexType> - <xs:complexType name="ValueQueryType"> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="Description" type="xs:string" /> </xs:complexType> - <xs:attributeGroup name="FeatureQueryAttributes"> <xs:attribute name="DisplayName" type="xs:string" use="required" /> <xs:attribute name="Installed" type="xs:boolean" use="required" /> <xs:attribute name="Id" type="xs:string" /> <xs:attribute name="Default" type="xs:boolean" /> </xs:attributeGroup> </xs:schema>
The following sections show the syntax and command-line parameters and options for ServerManagerCmd.exe.
ServerManagerCmd.exe -query [<query.xml>] [-logPath <log.txt>]
ServerManagerCmd.exe -inputPath <answer.xml> [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]
ServerManagerCmd.exe -install <command-Id> [-allSubFeatures] [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]
ServerManagerCmd.exe -remove <command-Id> [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]
ServerManagerCmd.exe [-help | -?]
ServerManagerCmd.exe -version
| Parameter | Description | ||||||||||||
-query [<query.xml>] | Displays a list of all roles, role services, and features installed and available for installation on the server. You can also use the short form of this parameter, -q. If you want the query results saved to an XML file, specify an XML file to replace query.xml. | ||||||||||||
-inputPath <answer.xml> | Installs or removes the roles, role services, and features specified in the answer file, an XML file represented by answer.xml. You can also use the short form of this parameter, -p. | ||||||||||||
-install <Id> | Installs the role, role service, or feature specified by Id. See Role, role service, and feature command identifiers in this topic for a complete list of the role, role service, or feature identifiers from which you can choose to specify for Id. The identifiers are case-insensitive. The following optional parameters are used with the -install parameter.
| ||||||||||||
-remove <Id> | Removes the role, role service, or feature specified by Id. See Role, role service, and feature command identifiers in this topic for a complete list of the role, role service, and feature identifiers from which you can choose to specify for Id. The identifiers are case-insensitive. The following optional parameters are used with the -remove parameter.
| ||||||||||||
-help | Display Help for ServerManagerCmd.exe in the command window. You can also use the short form, -?. | ||||||||||||
-version | Display the Server Manager version number. You can also use the short form, -v. |
The tables in this section match roles, role services, and features available in Windows Server 2008 with the command identifiers you must use with ServerManagerCmd.exe to install or remove them.
| Role and Role Service command identifiers | Command value | Notes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DHCP Server | DHCP | The DHCP Server role should be installed with default settings. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| During removal of this role in the Server Manager UI, you are prompted to delete instances of printers configured on the server. By default, these instances are preserved, which is the default behavior of command-line removal of the Print Services role. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Because Terminal Services settings can be configured after installing the role, you are not required to specify Terminal Services settings in the command-line answer file. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| After installing Active Directory Domain Services (AD DS), you must run the dcpromo command to promote the server to a domain controller. Removing the AD DS role while the computer is operating as a domain controller fails. You must first demote the domain controller to a standard domain member. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DNS Server | DNS | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| You cannot install or remove the File Services container by using the Server Manager command line. You can install or remove the File Services container only by using the Server Manager user interface. Note that for this reason, there is no command ID available to represent the File Services container. Because you can configure File Services settings after installing the role, you are not required to specify File Services settings in the Server Manager command-line answer file. Note that Services for Network File system is not part of the File Services role on computers running the IA64 version of Windows Server 2008; it is available as a feature on the 64-bit version of Windows Server 2008. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Active Directory Federation Services should be installed with default settings. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Active Directory Lightweight Directory Services | ADLDS | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| If you install the WS-Atomic Transaction Support role service, you should also configure it to use a self-signed certificate. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Certification Authority and Online Certificate Status Protocol can be installed by using the Server Manager command-line interface. Other role services for Active Directory Certificate Services cannot be installed by using the Server Manager command line. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fax Server | Fax | Fax Server should be installed with default settings. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Because Network Policy and Access Services settings can be configured after installing the role, you are not required to specify Network Policy and Access Services settings in the command-line answer file. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Active Directory Rights Management Services (AD RMS) cannot be installed by using the Server Manager command line. | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UDDI Services is not installable by using the Server Manager command line. | You cannot install UDDI Services by using the Server Manager command-line because complex database settings are required during UDDI Services setup. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Windows Deployment Services | WDS | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hyper-V | Hyper-V | None |
| Features | Command Value | Notes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Failover Clustering | Failover-Clustering |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Network Load Balancing | NLB |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Desktop Experience | Desktop-Experience |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Note that the command-line syntax for .NET Framework 3.0 Features does not contain the "." character before NET. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Windows Internal Database | Windows-Internal-DB |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BitLocker Drive Encryption | BitLocker |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Multipath I/O | Multipath-IO |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Internet Storage Naming Server | ISNS |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removable Storage Manager | Removable-Storage |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TFTP Client | TFTP-Client |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Services for Network File System | NFS-Services | Services for Network File System is available as a feature only on the Windows Server 2008 IA64 version. On other versions of Windows Server 2008, it is available as a role service of File Services. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Internet Printing Client | Internet-Print-Client |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Peer Name Resolution Protocol | PNRP |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Connection Manager Administration Kit | CMAK |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Windows PowerShell | PowerShell |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Group Policy Management | GPMC |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quality Windows Audio Video Experience | Qwave |
|
Server Manager Technical Overview main page (http://go.microsoft.com/fwlink/?LinkId=85101).
| InitWizard("e7edce1d-442c-4ec3-b324-c748e4f937551033"); |