使用命令行安装角色服务

Install role services using command line

我正在使用 Windows 服务器 class,我应该 install/uninstall 使用 CLI 和 PowerShell 的一些角色服务。

现在很容易弄清楚如何使用 PowerShell,因为有 Install-WindowsFeature 和 Uninstall-WindowsFeature cmdlet。

但我的实验作业要求我为 CLI 提供命令。

有没有办法从 CLI install/uninstall 角色服务?

请注意:我使用的是 Microsoft 的 MOAC Lab Set。

Install-WindowsFeature –Name feature_name -ComputerName computer_name -Restart