Friday, December 23, 2011

How to Enable PowerShell on Windows Server 2008 Server Core Edition?

Sponsored Links

You will not be able to run Powershell on a freshly installed Windows Server 2008 Core Operating System. But this option can be enabled through command line. This post explains how to enable Powershell on Windows Server 2008 Server Core.


Method to enable Powershell

Step 1 - Type "powershell" at the command prompt to find out if PowerShell is enabled or not.  If PowerShell is enabled it will route you to the PS root directory. If PowerShell is not installed/enabled then Windows will not recognized this command.
PowerShell is not enabled on this machine so our next step will be to enable it.

Step 2 - Run the "sconfig.cmd" command on your command prompt and press enter. Once you will press enter, it will open all of the options of system configuration. The "sconfig.cmd" command is the Server Configuration Tool to configure and manage several common aspects of the Windows Server 2008 R2 Server Core installation. You must be a member of the Administrators group to use the tool.

Step 3 - Once you have pressed "4" then press enter to see all of the options under the "Configure Remote Management" interface.

Step 4 - After you type "2" and press enter, the PowerShell configuration will start and the configuration process starts.

Step 5 - Once PowerShell has been successfully enabled, a separate command prompt screen will be pop-up and closed after the process reaches 100% completion. This is the deployment of features using the Dism.exe (Deployment Image Servicing and Management) tool. DISM enumerates, installs, uninstalls, configures and updates the features and packages in Windows images.

Step 6 - After all of the processes have completed,  a restart window will appear and ask you to restart the machine in order for all of the changes to be committed.  Click the "Yes" button to restart the machine.

Step 7 - Once the has been rebooted, type "powershell" on the command prompt. This time it will take few seconds to load then route you to a PS command prompt. You can run the "Get-Host" cmdlet to check the PowerShell version.
Source: mssqltips.com

blog comments powered by Disqus
Related Posts Plugin for WordPress, Blogger...