PowerShell 技能连载 - 安装 Windows 功能

在服务器中,Powershell 可以通过 Install-WindowsFeature 命令安装 Windows 功能。

若您将 Install-WindowsFeature 返回的结果保存下来,则可以用 Get-WindowsFeature 查看安装的状态:

# install features on server and save result in $result
Install-WindowsFeature -Name AD-Domain-Services, DNS -IncludeManagementTools -OutVariable result -Verbose

# view the result of your change
Get-WindowsFeature -Name $result.FeatureResult.Name

PowerShell 技能连载 - 安装 Windows 功能

https://blog.vichamp.com/2015/06/11/installing-windows-features/

作者

Victor Woo

发布于

2015-06-11

更新于

2015-06-11

许可协议

PowerShell 技术 QQ 群