SERVERMANAGERCMD

Installs and removes roles, role services, and features. Also lists installed roles, role services, and features.

Syntax for queries:

servermanagercmd -query [QueryFile.xml] [-logPath LogFile.txt]

servermanagercmd -version

Syntax for installations:

servermanagercmd -install Component [-resultPath ResultFile.xml
[-restart] | [-whatif]] [-logPath LogFile.txt] [-allSubFeatures]

Syntax for removals:

servermanagercmd -remove Component [-resultPath ResultFile.xml [-restart]
| [-whatif]] [-logPath LogFile.txt]

Syntax for installations or removals using an answer file:

servermanagercmd -inputPath AnswerFile.xml
[-resultPath ResultFile.xml
[-restart] | [-whatif]] [-logPath LogFile.txt]

Get Active Directory® Administrator's Pocket Consultant now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.