PowerShell Version 3–Let’s Go!

Let’s make sure we are running version 3.0, by checking the $Host variable:

image

PowerShell starts up faster than ever, especially the ISE, it is sooo much faster when running Version 3.

The big changes in the ISE from version 2 to version 3 are:

  • IntelliSense – Very awesome!
  • Visualise the cmdlets in the right pane and either run them or insert them (Also available with Show-Command)
  • Snippets (more info below)

image

Snippets

You can add a snippet using the New-ISESnippet cmdlet (shown below). You can get a list of the snippets using Get-ISESnippet. You can add a Snippet to your script using Crtl+J or by right-clicking in the Script Editor in the ISE.

image

As expected, the snippet persisted across ISE Sessions!

That’ll make script creation even faster Open-mouthed smile

Popular posts from this blog

Get local computer UUID/GUID using Windows Powershell

gPLink and gPOptions

PSLoggedOn Getting Started on Windows Server 2008 R2