A Podcast about Windows PowerShell.
Listen:
In This Episode
Tonight on the PowerScripting Podcast we talk with Joel Bennett and James Brundage about scriptable user interfaces.
News
Â
Â
Is your scripting might equal to the challenge? Put the power in your hands – download PowerGUI today
- Antoine blogged about v0.4 of PoshBoard and his presentation given at Techdays 2009 France
- PrimalScript 2009 released!
- Upcoming PowerShell UK UG schedules have been posted
- Karl Prosser blogs about the new release of PowerShellPlus 2.1 beta
InterviewÂ
Â
Â
Want to make Windows PowerShell easier than ever to learn and master? Checkout Idera's PowerShellPlus Professional Edition which is now available for download! The new version has vastly improved code completion and a slick interactive Learning Center. Go to www.idera.com/PodcastPeople to get your copy today!
Â
- dougchase : ## What do we need to do to get started with this stuff?
- jkavanagh58 : ## Is PrimalForms WPF?
- dougchase : ## Does it work in V1 and how do I implement it in V1? Â Seems like I read it worked in both versions but I couldn't figure out how to start using it in V1.
- ChadMiller : ##Haven't looked at WPF. Can you write a web page in WPF like powershellasp?
- rfoust : ## can you recommend a site to understand the basics of WPF?
- hal: Will these scriptable UI tools be able to replace HTA?
- jasonmarcher : ## How easy is it to create data templates and add them to existing tools/controls
Â
New-Grid -Rows 5 { Â Â
   New-Label "Please Enter Your Name"Â
   New-TextBox -Name YourName -Row 1Â
   New-Label "Sex:" -Row 2
   New-StackPanel -Row 3 {
     New-RadioButton -Content "Male" -IsChecked $trueÂ
     New-RadioButton -Content "Female" -Column 1
   }
   New-Button "Done" -Row 4 -On_Click {Â
     $yourName = $window | Get-ChildControl YourNameÂ
     $sex = $window |Â
       Get-ChildControl |Â
       Where-Object {
        $_ -is [Windows.Controls.RadioButton] -and
        $_.IsChecked
       } |Â
       Foreach-Object {
         $_.Content
       }
     if (-not $yourName.Text) {
       [Windows.Messagebox]::show("Who are you?")
     }
     $global:information = New-Object Object |
       Add-Member NoteProperty Name $yourName.Text -PassThru |
       Add-Member NoteProperty Sex $sex -PassThru    Â
     $window.Close()
   }
} -show
Resources
- Steve Murawski has a several part series talking about using the .NET framework from PowerShell. (part 1, part 2a, part 2b)
- Andy did a blog post that talks about custom objects
- PoshCode script:Â Compare-DatabaseSchema
- Lee Holmes posted a fun script to make perfect change
- James O'Neill posts some scripts for working with the Vista/W7/Server 2008 firewall
- Joel has written a scriptable SSH client in Powershell using an external .NET library
Â
TipsÂ
- From StackOverflow.com:Â How to get the actual size-on-disk of a file from PowerShell?
- Shay posted some information about using help in PowerShell ISE
Gotcha
- Kirk Munro has an awesome blog post talking about a quite wicked gotcha involving quoting rules and escape characters.
Â