Automating the PowerShell Script Repository
So, people keep talking about a better PowerShell script repository, and there’s at least 3 or 4 different people working on improvements, but for now, the one we have is working ok, and already has hundreds of scripts in it — but there hasn’t been a way to add or retrieve scripts from within PowerShell. [...]
Ideas for Writing Composable PowerShell scripts
I was just having some fun with some recent blog posts… WPF & PowerShell – Part 5 has a script for “Get-Listbox” and for “Show-Control” and Halr9000 wrote a script he called Get-PSBlogroll I had modified the example from the WPF post to create a listbox which will “start” whatever you double click … Get-Listbox [...]
WPF From PowerShell – The Missing Walkthrough
If you’ve been reading my series of articles about using WPF from PowerShell and wishing I had started with the basics about what WPF is … you’re in luck. Following my series of posts, the PowerShell team has written their own series — with a much more methodical approach. Starting with an introduction to WPF [...]
PowerShell Modules
Modules are a new feature of PowerShell v2 which were added to CTP2 with very little fanfare and no documentation. After struggling with the demo from the release notes, and searching in vain for help files, I was finally able to figure some of this out with some help from x0n of Nivot Ink and [...]
WPF From PowerShell – Select-Grid
After looking over the scripts I’ve pasted in the last few days it struck me that all of them load the UI from XAML — and for the most part, you can do pretty much whatever you need to do in WPF in pure PowerShell if you want to. To demonstrate this, I wrote a [...]
WPF From PowerShell – Something Useful
After posting my last post, I started thinking that perhaps I shouldn’t really have started with something so splashy . So I started thinking about what I could use as a proper example — not of what WPF can do, but of what you might want to use WPF for in PowerShell. I came up [...]
WPF From PowerShell – Updating Windows
In my last post I wrote about how you could make a WPF Splash screen window in PowerShell, but I stated that: “if the images are remote, the WPF window has to download them, and therefore won’t work” correctly. I had played with downloading images directly by setting the Source attribute of the image to [...]
WPF From PowerShell – A Splash Screen
I mentioned in my last post that the new PowerShell 2 CTP2 release includes a STA switch which lets PowerShell run in Single Threaded Apartment mode. I also mentioned that this means we can do WPF and build UIs in XAML ... but I left it at that. I thought I should go ahead and [...]
PowerShell 2 CTP2 — Wow!
The PowerShell team has released the second CTP of PowerShell 2 and it’s got so much new stuff in it, that it’s honestly hard to know where to start, so this first post is just going to be a list of the things I find the most exciting. STA Threading You can run PowerShell in [...]
PowerShell Power User Tips: Bash-style “alias” command.
I keep hearing from new users who are used to bash-style aliases, how frustrating it is not to be able to create aliases with parameters, the way you can in bash … I’m going to show you how to make the “alias” command work roughly the way it does in bash, but first, let me [...]