Thursday, July 13, 2023

PowerShell 3.0

Loaded up Windows 8 and Windows 8 Server and looking at the improvements to powershell.
Get started by typing in $host.version and you will notice that you are now on major 3.  hehe

First thing that I have noticed is that help has -online switch.  Went back and wow it is on 2.0 as well.  Funny how I missed that.

Get-Help [command] -online where [command] is the command you need help on

Nice Touch

When you type get-command it now tells you what module the command is coming from

New Features

Profiles
http://msdn.microsoft.com/en-us/library/windows/desktop/bb613488(v=vs.85).aspx

ISE
import-module servermanager
add-windowsfeature powershell-ise
powershell_ISE

(HINT) Get-WindowsFeature will display entire list

ISE Profiles
http://blogs.technet.com/b/heyscriptingguy/archive/2011/09/13/the-scripting-wife-creates-a-powershell-ise-profile.aspx

 Test-Path $profile
New-Item $profile -ItemType file –Force
Using ISE File > Open > created file above