【问题标题】:Enabling desktop experience from C# on windows 2008 / 2012在 Windows 2008 / 2012 上从 C# 启用桌面体验
【发布时间】:2014-02-19 19:56:37
【问题描述】:

我目前正在使用命令:

servermanagercmd -install Desktop-Experience

根据我的阅读,我了解到 Windows 2012 不再支持此功能。

我知道可以通过 PowerShell cmdlet 以某种方式完成,但找不到示例 有需要。

【问题讨论】:

    标签: c# powershell powershell-2.0 powershell-3.0


    【解决方案1】:

    我认为您要查找的 PS 脚本是:

    Add-WindowsFeature Desktop-Experience
    

    【讨论】:

      【解决方案2】:

      我认为Add-WindowsFeature 命令在 2008 年不会起作用。DISM 是所有相关版本的最佳途径。

      Dism /online /Enable-Feature /FeatureName:DesktopExperience /All 
      

      【讨论】:

        猜你喜欢
        • 2022-07-13
        • 2021-05-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多