PowerShell Basics

Unlocking the new Power in the Microsoft Shell

Archive for the ‘Uncategorized’ Category

PowerShell vs. Code Runner .NET

Tuesday, April 15th, 2008

I just came across a blog post on Colin’s Microsoft Developer Blog called Scripting for C#.  In the post, Colin describes using Code Runner .NET to be able to quickly create a C# application and run it without having to create a new project or solution file or worry about binaries.

 

PowerShell can serve that exact purpose, without the overhead of launching Visual Studio or needing other tools.  PowerShell can leverage the experience developers have with the .NET Framework, right at the command line. 

 

The Code Runner .NET project includes a sample program that takes nineteen lines.  Here is the PowerShell equivalent -

Write-Host $MyInvocation.MyCommand

 

Code Runner .NET seems to be a pretty cool project, but PowerShell in the development environment can be a very useful tool.

 

[NOTE:  I’m a sysadmin, not a developer, so take my comparison with whatever sized grain of salt desired.] 

Happy Birthday to A Couple Of Admins/Mind Of Root!

Wednesday, March 19th, 2008

I’d also like to wish Mind of Root (formerly A Couple of Admins) a happy birthday and I would like to say thank you to Rich and Keith for welcoming me to the podcast (August will be a full year for me.)

 

If you haven’t had listened to the podcast before, we cover a wide array of sysadmin related topics, tech topics, and news stories in a less than formal structure.  We also have had a number of interesting interviews.

 

Hope to see you there!

Happy Birthday to the PowerScripting Podcast!

Wednesday, March 19th, 2008

Just wanted to wish Hal and Jonathan a Happy Birthday, as the PowerScripting Podcast is now 1 year old!

 

They’ve also released the first half of an interview with Jeffrey Snover.  Find it HERE.

 

Great work guys!