Arrange – Act – Assert: Intuitive Testing
Today I have a new module to introduce you to. It’s a relatively simple module for testing, and you can pick it up in short order and start testing your scripts, modules, and even compiled .Net code. If you put it together with WASP you can pretty much test anything The basis for the module [...]
Logging Robocopy errors to the Event Log using PowerShell
Someone came into IRC last week asking for help converting a rather large vbscript into PowerShell, and got me interested in turning Robocopy logs into Windows Events… The original VBScript is about 68 lines of code, and writes one event per log file. We duplicated it’s functionality with the following 11 lines of code: Param($LogPath, [...]
A DSL for XML in PowerShell: New-XDocument
In July of last year I wrote a PowerShell script with the goal of allowing me to generate XML from PowerShell with a simple markup that would look a little like the resulting XML ... this week I was using that script again, and had a couple of issues that made me go back and [...]
Are you interested in a virtual PowerShell brown-bag event?
I just put up a poll on the PowerShell Virtual Group to see if people are interested in a low-planning brown-bag event. The initial question is: would you attend a weekly (or monthly) virtual brown-bag lunch if I put one together. The idea is that we would start each session with a short collection of [...]
Fun with PInvoke and Aero Peek
There are so many fun things you can do in Windows when your scripting language allows you to make PInvoke calls to Win32 APIs … but I have to say it’s amazing how many things have been added to Windows recently and still left out of the .Net framework … Anyway, on to the Aero [...]
More Growl for Windows from PowerShell
Well, I’m back already with an update for the Growl module I posted yesterday … This new version is a true PowerShell 2.0 only module, because I found that the Growl callbacks can only be handled in PowerShell 2.0 anyway, so in order to add support for that, I went ahead and upgraded the rest. [...]
Growl for Windows – From PowerShell
This is just a quick post (as I promised, recently) to let you all know that I’ve published the first release of my Growl for Windows module for PowerShell over on PoshCode. I haven’t been able to get callbacks to work, and I spent way too much time playing with them instead of publishing this, [...]
Control your PC with your voice … and PowerShell
Have you ever wanted to be able to ask your computer questions and have it answer you out loud? Have you ever wondered if your computer could be more like the ones running the Star Trek Enterprise, responding to voice queries and commands? Have you played with ZWave or X10 home automation and thought that [...]
Convert Twitter users into FriendFeed Imaginary Friends!
So a lot of people seem to be taking the latest missteps by Twitter’s management (and the accompanying admission of bad design) as an opportunity to try out some alternatives. Many of them seem to be coming over to FriendFeed (which has been better than Twitter for a long time, but nevermind that) ... so [...]
Using PowerShell and WatiN (PowerWatin?)
This is an update to a previous article. Someone asked (on Twitter) about using WatiN from PowerShell, and pointed to this old post by Scott Hanselman saying he was having the same problems … so I wrote this to help them out: WatiN requires -STA mode Note: WatiN requires Single Threaded Apartment mode, so you [...]