Answered Install features without powershell

  • Wednesday, June 20, 2012 10:20 PM
     
     

    hello,

    Because I could not install the Hyper-V role, I have uninstalled Features that I haven't installed like ".Net Framework 4.5"... But when you uninstall ".Net Framework 4.5", you uninstall Powershell 3.0 and the GUI features.

    Now, I'm with the Core version of Windows 2012 server.

    Is it possible to install the features without powershell?

    Is there a way to install powershell?

    Thank you.

All Replies

  • Thursday, June 21, 2012 1:38 AM
    Moderator
     
     Answered

    Hi,

    PowerShell need .Net Framework. If you uninstall .Net Framework, you will not be able to use PowerShell.

    By the way, you can use dism.exe to enable or disable features.

    Enable or Disable Windows Features Online
    http://technet.microsoft.com/en-us/library/dd744582%28WS.10%29.aspx

    • Marked As Answer by merovingien31 Thursday, June 21, 2012 3:26 PM
    •  
  • Thursday, June 21, 2012 5:52 AM
     
     

    Even if PowerShell is uninstalled on the server, you may be able to use the Server Manager GUI from a remote machine to add and remove roles and features on your server via remote management.

    I recommend that you use Server Manager and not Dism on your servers. The equivalent Dism commands for Server are not documented, and using Dism may cause Server Manager's feature tree to become out of sync because some Server Manager features are composed of multiple Dism features.

    Example:

    In order to install the "Server-Gui-Mgmt-Infra" Server Manager feature, you need to install BOTH "ServerCore-FullServer" and "Server-Gui-Mgmt" Dism features.



  • Thursday, June 21, 2012 3:26 PM
     
     Answered

    Thank you Vincent ,

    I follow the URL you give me, and I found that I wanted ...

    Yes, for me it was better to use DISM.

    This is how I do to install The GUI feature :

    1) Dism /online /Get-Features

    Then I looked for the DesktopExperience feature...

    2)Dism /Online /Enable-Feature /FeatureName:DesktopExperience

    At this point, I have an error because "DesktopExperience" Feature is depending of .Net Framework, Powershell and other...

    So we have to put the "/all" after feature name, in this case DISM will install the feature and all depending features.

    3) Dism /online /Enable-Feature /featureNAme:DesktopExperience /all

    4) Powershell

       Install-WindowsFeature Server-GUI-Mgmt-Infra, Server-Gui-Shell -Restart

    Thank-you Vincent, thank-you DISM ...


    John


  • Thursday, June 21, 2012 4:12 PM
     
     

    FYI, you can do the whole thing with Dism as follows:

    Dism /online /Enable-Feature /FeatureName:DesktopExperience /FeatureName:Server-Gui-Mgmt /all