【发布时间】:2014-02-19 19:56:37
【问题描述】:
我目前正在使用命令:
servermanagercmd -install Desktop-Experience
根据我的阅读,我了解到 Windows 2012 不再支持此功能。
我知道可以通过 PowerShell cmdlet 以某种方式完成,但找不到示例 有需要。
【问题讨论】:
标签: c# powershell powershell-2.0 powershell-3.0
我目前正在使用命令:
servermanagercmd -install Desktop-Experience
根据我的阅读,我了解到 Windows 2012 不再支持此功能。
我知道可以通过 PowerShell cmdlet 以某种方式完成,但找不到示例 有需要。
【问题讨论】:
标签: c# powershell powershell-2.0 powershell-3.0
我认为您要查找的 PS 脚本是:
Add-WindowsFeature Desktop-Experience
【讨论】:
我认为Add-WindowsFeature 命令在 2008 年不会起作用。DISM 是所有相关版本的最佳途径。
Dism /online /Enable-Feature /FeatureName:DesktopExperience /All
【讨论】: