Tuesday 24 July 2012

Get-Scripting Podcast Episode 31 - (Jonathan Noble talks PowerShell v3)


This is Episode 31 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:

Easily creating PowerShell Quick References

Jonathan:

PowerShell and XenDesktop at the UK PowerShell User Group

Automating MSI Installations with PowerShell

Checking 32bit PowerShell Snapins from 64bit PowerShell


Interview:




Jonathan Noble - Blog

http://www.jonoble.com/blog/2012/1/19/whats-new-in-powershell-v3-the-slides.html

http://www.virtu-al.net/2012/06/05/installing-powershell-web-access-on-windows-2012-rc-core/

http://blogs.msdn.com/b/powershell/archive/2012/06/14/new-v3-language-features.aspx




PowerShell News:

Windows Server 2012 Release Preview is out. Full release to ship in August. Then we will be in v3!

PowerShell Resources:


PowerShell for Network Pen Testing series over on Hey Scripting Guy


http://blogs.technet.com/b/heyscriptingguy/archive/tags/niklas+goude/


Be efficient – Virtualize & automate your test environment


http://blogs.vmware.com/vipowershell/2012/06/be-efficient-virtualize-automate-your-test-environment.html


PowerShell Gotcha



Numeric values as the first character in parameter names:


function foo {
[cmdletbinding()]
param (
[parameter()]
[switch]$32bit
)
if ($32bit){
"32bit"
}
}
PS c:\> foo -32bit
foo : A positional parameter cannot be found that accepts argument '-32bit'.


Workaround! - $x86
From the language specification document:


http://www.microsoft.com/en-us/download/details.aspx?id=9706

(no Nd)
first-parameter-char:
A Unicode character of classes Lu, Ll, Lt, Lm, or Lo
_ (The underscore characterU+005F)
?


https://connect.microsoft.com/PowerShell/feedback/details/753467/using-a-numeric-character-as-the-first-character-of-a-parameter-name-should-produce-a-clearer-error-message-and-be-permitted-if-it-also-contains-non-numeric-characters


Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Extensive list of Powershell Twitterers