PowerShell is installed by default in
Windows Server 2008 R2, but you have to add it in Windows Server 2008.
You can use the steps in the following table to add it to Windows
Server 2008.
Tip
Windows does not support installing PowerShell on a
Server Core installation of Windows Server 2008. However, the Server
Core installation of Windows Server 2008 R2 does support PowerShell.
This page (see http://support.microsoft.com/kb/976736) shows how to install it on Server Core 2008 R2.
Steps | Action |
---|
1. | Launch Server Manager from the Administrative Tools menu. |
2. | Select Features. Click Add Features. |
3. | Scroll down to Windows PowerShell and click the checkbox to add it. Click Next. |
4. | Click Install. When the installation completes, click Close. |
After it is installed, you can launch the PowerShell command prompt by clicking Start, typing PowerShell in the Start Search text box, and pressing Enter. You can also click the Windows PowerShell icon on the Quick Launch bar to the right of the Start menu.
Tip
Many PowerShell commands require administrative
permissions. You can launch Windows PowerShell with elevated
permissions by right-clicking Windows PowerShell and selecting Run As Administrator.
Figure 1 shows the Windows PowerShell window. In the figure, the $host and get-help commands were executed after launching PowerShell.
Tip
Windows 2008 R2 includes Windows PowerShell v2.0 and Windows Server 2008 includes Windows PowerShell v1.0.
You can check the PowerShell version by typing $host and pressing Enter in the PowerShell prompt.