Why do things by hand when you have PowerShell? – Part 1

A few months ago I write a blog post about winning a bet about a PowerShell Switch statement.

Jeffery Hicks commented on the post that he was hoping I used PowerShell to write the code in that post… if I had done it by hand I would have been plain crazy!
Now although I am pretty much crazy, I don’t like manual labor… so, how can you do something like that in an easy way?

It’s actually very easy with just three simple steps:

1) Create 300 objects:

2) For each object, do a Write-Output:

4) Redirect the output to the clipboard so you can paste it in a blog post:

Writing the script? about 3 minutes…
Doing it by hand? Are you nuts!!!!???? 😉

Leave a Reply

Your email address will not be published. Required fields are marked *