Server Manager command line syntax and parameters

The following sections show the syntax and command-line parameters and options for ServerManagerCmd.exe.

Syntax

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

Parameters

Parameter

-query [<query.xml>]

-inputPath <answer.xml>

-install <Id>

Description

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.

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.

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

-version

Display Help for ServerManagerCmd.exe in the command window. You can also use the short form, -?.

Display the Server Manager version number. You can also use the short form, -v.

Role, role service, and feature command identifiers

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

Role and Role Service command identifiers

DHCP Server

Command value

DHCP

Notes

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)

Rights Management Server

Active Directory Rights Management Services (AD RMS) cannot be installed by using the Server Manager command line.

UDDI Services is not installable by using the Server Manager command line.

WDS

Hyper-V

None

You cannot install UDDI Services by using the Server Manager command-line because complex database settings are required during UDDI Services setup.

None

None

UDDI Services

UDDI Services Web Application

UDDI Services Database

Windows Deployment Services

Hyper-V

Feature command identifiers

Features

Failover Clustering

Network Load Balancing

Desktop Experience

Command Value

Failover-Clustering

NLB

Desktop-Experience

Notes

Note that the command-line syntax for .NET Framework 3.0 Features does not contain the "." character before NET.

Windows System Resource Manager

Wireless Networking

Windows Server Backup

WINS Server

Remote Assistance

Simple TCP/IP Services

Telnet Client

Telnet Server

Subsystem for UNIX-based Applications

RPC over HTTP Proxy

SMTP Server

LPR Port Monitor

Storage Manager for SANs

BITS Server Extensions

WSRM

Wireless-Networking

Backup

WINS-Server

Remote-Assistance

Simple-TCPIP

Telnet-Client

Telnet-Server

Subsystem-UNIX-Apps

RPC-over-HTTP-Proxy

SMTP-Server

LPR-Port-Monitor

Storage-Mgr-SANS

BITS

Windows Internal Database

BitLocker Drive Encryption

Multipath I/O

Internet Storage Naming Server

Removable Storage Manager

TFTP Client

Windows-Internal-DB

BitLocker

Multipath-IO

ISNS

Removable-Storage

TFTP-Client

SNMP-Services

SNMP-Service

SNMP-WMI-Provider

NFS-Services

Internet-Print-Client

PNRP

CMAK

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.

SNMP Services

SNMP Service

SNMP WMI Provider

Services for Network File System

Internet Printing Client

Peer Name Resolution Protocol

Connection Manager Administration Kit

Windows PowerShell

Group Policy Management

Quality Windows Audio Video Experience

PowerShell

GPMC

Qwave