Monday, January 28, 2013

Enable PowerShell ISE Editor

Good news for all the PowerShell developers/users. I know writing or editing a PowerShell script in Notepad or Visual Studio is not at all user-friendly and annoying. To overcome all such problems we can enable PowerShell ISE which provides a nice interface with script and output windows side by side.

Windows Server 2008 R2:
Execute the below commands on PowerShell command prompt.
1. Import Module Server Manager
    Import-Module ServerManager

2. Now search for PowerShell ISE feature in Windows Features
   Get-WindowsFeature -Name *PowerShell*

3. Verify PowerShell-ISE feature exists in previous result and add the feature
   Add-WindowsFeature PowerShell-ISE

Now the PowerShell ISE enabled on the server. To open the editor check for the Windows PowerShell ISE shortcut in start menu or open the PoserShell command prompt and execute the command ise.

Windows Server 2012:
PowerShell ISE comes by default.

Hope this helps making PowerShell scripts creation and execution easy and simple.

No comments:

Post a Comment