Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Keywords: kbexpertiseadvanced, kbhowto, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 976736
Revision : 1
Created on : 1/7/2017
Published on : 2/16/2011
Exists online : False
Views : 352