ServerManagerCmd switches Windows 2008

The ServerManagerCmd installs and removes roles, role services and features.

ServerManagerCmd.exe -query [] [-logPath ]

ServerManagerCmd.exe -install [-resultPath [-restart] -whatIf] [-logPath ] [-allSubFeatures]

ServerManagerCmd.exe -remove [-resultPath [-restart] -whatIf] [-logPath ]

ServerManagerCmd.exe -inputPath [-resultPath [-restart] -whatIf] [-logPath ]

Switches:

-query [] Display a list of all roles, role services, and features available, and shows which are installed on this computer. (Short form: -q)

-inputPath Installs or removes the roles, role services, and features specified in an XML answer file. (ShortForm: -ip)

-install Installs the role, role service, or feature on the computer that is specified by the parameter. Multiple roles, role services or features must be separated by spaces. (ShortForm: -i)

-allSubFeatures Used with the -install parameter to install all subordinate role services and features along with the role, role service, or feature named with the -install parameter. (Short form: -a)

-remove Removes the role, role service, or feature from the computer that is specified by the parameter. (ShortForm: -r)

-resultPath Saves the result of the ServerManagerCmd.exe operation to a file. (Short form: -rp)

-restart Restarts the computer automatically, if restarting is necessary to complete the operation.

-whatIf Display the operations to be performed on the current computer that are specified in the answer.xml file. (Short form: -w)

-logPath Specify the non-default location for the log file. (Short form: -l)

Note:
Multiple roles, role services or features must be separated by spaces.

No comments:

Recent Posts