I was working today on a 2008 R2 machine and wanted to write a script and was compuzzled where there was no PowerShell ISE on that server?! Come to find out that the ISE is not installed by default on 2008 R2. Grr…

Here how to install it with a 2 liner: (run PS as admin)

Import-Module ServerManager
# In newer PS versions just 'install-windowsfeature'
Add-Windowsfeature PowerShell-ISE