Category Archives : PowerShell

Home  >>  PowerShell

Grrr source code, including Invaders

On August 26, 2007, Posted by , In Announce,Grrr,Invaders,PowerShell, With 3 Comments

As you may have noticed, there has been very little activity here from me in recent months. This is partly because my full time work does not use nor need PowerShell and my free time has become more precious. Playing with PS1 has been fun and I’ve learned a lot,…

Cmdlet clashes

On March 6, 2007, Posted by , In Cmdlets,Grrr,Hint,PowerShell,Rant, With 6 Comments

One of the things that struck me whilst developing Grrr as a snapin is: what do you do when you have a cmdlet with the same verb-noun pair as an existing cmdlet? If someone else had a cmdlet called, say, out-banner, and that cmdlet was already loaded in a snap-in…

Grrr 1.1 and Big Invaders

On February 26, 2007, Posted by , In Announce,Cmdlets,Cool,Grrr,Invaders,PowerShell, With 11 Comments

So I’ve been spending a bit of time getting to grips with Cmdlets and resurrecting interest in PSInvaders using Grrr and now have something to post. Grrr 1.1 is now Cmdlet based and comes as a Snap-In. The most obvious benefit from this is performance, as I can now present…

Grrr, Cmdlets and PSInvaders revival

On February 15, 2007, Posted by , In Announce,Grrr,Invaders,PowerShell, With Comments Off on Grrr, Cmdlets and PSInvaders revival

Still not much happening here, again partly due to being busy with other things, and also the final arrival of my Wii. Anyways, I’ve almost completed the transition of Grrr to Cmdlets and it’s looking very promising as this screen shot shows (I get 50fps with only 20% cpu load…

Slow week

On February 9, 2007, Posted by , In Announce,Grrr,PowerShell, With 2 Comments

Not much happening here on the blog this week as I’ve been a bit busy with other things and also on some non-trivial PowerShell projects: A snap-in version of Grrr – I realised that PowerShell alone is just too slow for it to be useful, so thought I’d have a…

IRC chat bot and monitor

On January 31, 2007, Posted by , In Cool,PowerShell,Utility, With Comments Off on IRC chat bot and monitor

Last weekend, I asked my wife if she could think of anything inappropriate or unusual to do with PowerShell. She came up with some good ideas and one of them was to write a chat/IM client. A full client takes time, so with a nod toward PowerShell’s administrative uses, I…

Debug and Verbose colouring

On January 29, 2007, Posted by , In Hint,PowerShell, With 2 Comments

Over the weekend, I set about writing an IRC chat client/channel monitoring tool in PowerShell (more on that in a day or so) and one of the things I was doing a lot was writing verbose and debug information to the console. By default, Write-Verbose and Write-Debug cmdlets write nothing…

Making functions *really* read-only

On January 26, 2007, Posted by , In Odd,PowerShell, With 2 Comments

Over at the excellent PowerShell Team Blog, Bruce Payette wrote about Controlling PowerShell Function (Re)Definition. However, making a function constant does not prevent it from being shadowed in child scopes. Given that a child scope is created in any script, new function definition or script block, this makes it very…

Updated get-bufferhtml

On January 25, 2007, Posted by , In Announce,Cool,PowerShell,Utility, With 2 Comments

A while back, I posted an article: Console screen grabs in html. I fixed some bugs and added a couple of new features to the script get-bufferhtml.ps1, and have updated the article with examples. Enjoy!

Webserver and RSH in PowerShell

On January 24, 2007, Posted by , In Cool,PowerShell, With 1 Comment

Ever wanted to control a PowerShell session from a web browser or curl/wget on another machine? Yes? Well it surprisingly simple using PowerShell to script the System.Net.HttpListener. Here’s a working example with some genuine uses (well useful for me). I’ll leave all the security and risk concerns as an exercise…