Enabling PowerShell on Windows Server 2008

Leave a comment

July 20, 2011 by Rakesh Boraiah


PowerShell is a tool that administrators need within reach on Windows servers. IT pro Rakesh Boraiah shows you how quick and easy it is to enable PowerShell on Windows Server 2008.

For Windows editions prior to Windows Server 2008, PowerShell was an installable application. PowerShell now exists as a Windows feature for Windows Server 2008 in all editions except Core. The forthcoming Windows Server 2008 R2 release is, however, scheduled to offer PowerShell support.

To enable the PowerShell feature, I’ll show two ways to install it on the Windows Server 2008 server.

Server Manager

You can drop PowerShell on the server through the Server manager application. Go to the Features section and select Windows PowerShell. Figure A shows this selection in the Features wizard.

Figure A

 

 

 

 

 

 

 

Scripted installation

The other approach that suits many administrators for a semi-automated configuration is to script the installation of Windows components. The ocsetup command can enable PowerShell on Windows Server 2008 with a one-liner. The command below will add the PowerShell feature to the server:

start ocsetup MicrosoftWindowsPowerShell

Once the server manager window is refreshed, the PowerShell feature will display as being installed, and the PowerShell shortcut will appear in the Start menu in the Windows PowerShell 1.0 program group. PowerShell is now ready for use.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: