Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found pointers to

ocsetup MicrosoftWindowsPowerShell 


start ocsetup MicrosoftWindowsPowerShell 

but they have no effect.

share|improve this question
up vote 8 down vote accepted

Title: How to install Windows PowerShell on a computer that is running Windows Server 2008 R2 Core.

From the article:

Method 1

  1. Run SCONFIG.
  2. Select option 4 (Configure Remote Management).
  3. Select option 2 (Enable Windows PowerShell).
  4. Click OK.

Method 2

Install the following features:

  • NetFx2-ServerCore
  • NetFx3-ServerCore
  • NetFx2-ServerCore-WOW64
  • NetFx3-ServerCore-WOW64
  • MicrosoftWindowsPowerShell
  • MicrosoftWindowsPowerShell-WOW64

The following are examples of the commands that install these features:

  • DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore
  • DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore
  • DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64
  • DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64
  • DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell
  • DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64

Note Because Windows PowerShell is built on Microsoft .NET Framework, Microsoft .Net Framework must be installed correctly first for a successful Windows PowerShell installation.

share|improve this answer
Be aware... Method1 does not load any of the *-WOW64 features. Also, Method2, NetFx3 is not required. – Marco Shaw May 17 '10 at 1:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.