Wednesday, 30 May 2012

Get-Scripting Podcast Episode 30 - (Jan Ring talks SCVMM)

This is Episode 30 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:



Jonathan:

Working a contract for Citrix via Start-Automating


Interview:



Jan Ring

Blog

PowerShell News:

Scripting Games have taken place

PowerShell and WMI book from Richard Siddaway published

PowerShell Resources:


PoshChat


Convert Images to Text Ascii Art



Unofficial vCD Cmdlets





Don Jones - PowerShellbooks.com

PowerShell Tips:


Escaping a Regex when using -match

PS V:\> $TestError = "This is a (test)"

____________________________________________________________________________________________________________________________________
PS V:\> $RealError = "This is a (test)"

____________________________________________________________________________________________________________________________________
PS V:\> $TestError -match $RealError
False

____________________________________________________________________________________________________________________________________
PS V:\> $TestError -match [regex]::Escape($RealError)
True

____________________________________________________________________________________________________________________________________
PS V:\> $RealError = "This is a \(test\)"

____________________________________________________________________________________________________________________________________
PS V:\> $TestError -match $RealError
True


http://www.vistax64.com/powershell/199639-comparing-string-contains-parenthesis.html

Get Index of Item in an Array

Multiple Variable Assignment

PS C:\> $a,$b = 'apple','pear'

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $a
apple

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $b
pear



or


PS C:\> $a,$b = 'apple','pear','banana'

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $a
apple

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $b
pear
banana

PowerShell Gotcha


Chat with Hal - ValidationSet not working with tab completion, enumeration.
Function a {

Param

(

[parameter(Mandatory=$true)]

[ValidateSet("Low", "Average", "High")]

[String[]]

$Detail

)

Process {

Write-Host $Detail

}

}

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

No comments:

Post a Comment