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

INTRODUCTION
Windows PowerShell is a task-based command-line shell and is a scripting language that is specially designed for system administration. It is built on Microsoft .NET Framework. Windows PowerShell helps you control and automate the administration of the Windows operating system and of the applications that run on Windows.
MORE INFORMATION
By default, Windows PowerShell is not installed on a computer that is running Windows Server 2008 R2 Core. You can use the following methods to install Windows PowerShell on a computer that is running Windows Server 2008 R2 Core.

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.
Properties

Article ID: 976736 - Last Review: 02/16/2011 16:16:00 - Revision: 1.2

Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard, Windows Server 2008 R2 Service Pack 1

  • kbexpertiseadvanced kbhowto kbsurveynew KB976736
Feedback