Archive for the ‘powershell’ Category

Type Extensions

Posted on May 7th, 2007 by aaron
Filed under powershell | No Comments

You’d think from all of my posts on PowerShell that I was a system admin, or worked in a job that required a lot of scripting/automation. Well, the second one is partly true, I’m a .NET developer, primarily working on WinForms based applications, soon to include WPF (and hopefully Silverlight!). I think any [...]

PowerTab 0.9 for PowerShell and Invoke-Intellisense

Posted on April 18th, 2007 by aaron
Filed under powershell | 8 Comments

Two days ago /\/\o\/\/ released PowerTab 0.9 (overview page). He’s got some very nice improvements, one of which was support for my GUI-based intellisense. I’d had a few bugs to fix, and I wanted to re-implement the entire thing as a proper cmdlet instead of a script-with-supporting-assembly (geez), so I went ahead and [...]

Powershell Replace-String Function

Posted on March 28th, 2007 by aaron
Filed under powershell | 10 Comments

PowerShell doesn’t include the ability to do a mass search-and-replace. As I was just looking for a good way to do this, it so happened that at around the same time someone asked the question in the newsgroups, and got a good answer from Keith Hill.
I took what Keith wrote, and sort of consolidated [...]

Intellisense Update

Posted on March 8th, 2007 by aaron
Filed under powershell | No Comments

I guess v0.0.001 wasn’t inaccurate for the version of “Powershell Intellisense” I posted a day or so ago. I’ve since found a few bugs (i.e. it doesn’t display in the correct location if your window buffer contains data outside the currently displayed window–in most cases you won’t be able to see it at all), and [...]

PowerTab Powershell Intellisense

Posted on March 6th, 2007 by aaron
Filed under powershell | 4 Comments

Update: I’ve posted an updated version to go along with /\/\o\/\/’s PowerTab 0.9 release, including one important bug fix.
A day or so ago I posted about an implementation of PowerShell “intellisense” I was working on, based on /\/\o\/\/’s really great PowerTab extension for TabExpansion. Well, after a few more hours of work and testing, [...]

Intellisense in PowerShell

Posted on March 5th, 2007 by aaron
Filed under powershell | 3 Comments

Recently I’ve been thinking about Intellisense (and similar features), and the impact it’s had on software development. I find that I can live without it for the few common tasks I perform all the time, but anything beyond that a lack of Intellisense is a serious productivity killer. It’s amazing how much more [...]

Set your Powershell console window icon (at runtime)

Posted on February 16th, 2007 by aaron
Filed under powershell | 3 Comments

In my last post I mentioned that I use the title of a console window to help track what codebase/component I’m working with. Another way we organize some of these windows is via the window icon (we happen to have color names for our various codebases, so it works pretty well). Today my [...]

Powershell Window Title

Posted on February 16th, 2007 by aaron
Filed under powershell | No Comments

There’s no “title” command in Powershell to set the window title of the console window. I use this frequently because I often have several build/codebase windows open, and switch between them frequently. Add this to your profile to create a “title” alias:

1: function Set-WindowTitle($text)
2: {
[...]

Reboot a Polycom phone via PowerShell

Posted on February 2nd, 2007 by aaron
Filed under powershell | 7 Comments

Jeffrey Snover posted a while ago encouraging others to share their PowerShell automation, no matter how little. Well in the spirit of that post, here is a script that will reboot a Polycom IP phone; I tested it with the IP600. (Note: my script is based on the perl version found here.)
Essentially the script [...]

Scott Hanselman interviews Jeffrey Snover

Posted on October 13th, 2006 by aaron
Filed under powershell | No Comments

Scott’s recent Hanselminutes podcast is an interview with THE Powershell Architect, Jeffrey Snover. I thoroughly enjoyed this one, and would recommend giving it a listen. It’s been a little while since I’ve done anything Powershell-ish (been quite busy at work) but this got me eager to jump back in.
Enjoy!