What is PowerShell ISE

In my previous post I gave you a quick glimpse into the the history of PowerShell. Pretty crazy to think about that PowerShell has been around for 11 years now, what did we ever do without it? Anyways – let’s talk about PowerShell ISE.

PowerShell v2.0 introduced its first Windows-based graphic user interface (GUI) called PowerShell ISE (Integrated Scripting Environment). It provides everything you need from writing a script with syntax coloring, cmdlets, selective execution, context-sensitive help, and helping you debug your code.  PowerShell v3.0 introduced Auto-Complete and also eliminated a few syntax, so if you’re running PowerShell v2.0 those eliminated syntaxes might be an issue. When I create code I need to make it available for a lot of different Windows Servers from 2008-2016. Here is an example:

Squiggle brackets for Where-Object are not needed anymore and it allows for less typing and makes the code easy to read. As mentioned above; this will not work on v2.0 devices and will break the script.

v2.0

get-service | where {$_.status -eq 'running'}

v3.0

get-service | where status -eq 'running'

I don’t know about you, but I really enjoy when you can say more with less! My wife on the other hand – not so much. Catch you tomorrow with more on PowerShell.

Advertisements

One thought on “What is PowerShell ISE

  1. Pingback: Determine Installed PowerShell Version | ZOTech Consulting

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