Category Archives: powershell

Sidebar on Ed Wilson’s (Scripting Guy) Latest Book

A while back, I was asked to submit a sidebar for Ed Wilson’s (Microsoft’s Hey, ScriptingGuy!) latest book titled “Windows PowerShell Best Practices ” on my use of PowerShell in the environment. Of course, I couldn’t refuse this offer and … Continue reading

Posted in News, powershell | Tagged , , , | Leave a comment

Avoiding System.Object[] (or Similar Output) when using Export-Csv

I’ve ran into this issue a number of times and have seen others as well when they attempt to pipe some data which may have a collection of items in one of its properties to a CSV file using Export-Csv. … Continue reading

Posted in powershell | Tagged , , , | 17 Comments

Winter Scripting Games 2014 Tip #2: Use #Requires to let PowerShell do the work for you

In Version 2 of PowerShell, you had the ability to use #Requires –Version 2.0 to ensure that your scripts/functions would only run at a specified PowerShell version to prevent folks running an older version from wondering why things weren’t working … Continue reading

Posted in powershell, V3, V4, Winter Scripting Games 2014 | Tagged , , , , , | 3 Comments

Winter Scripting Games 2014 Tip #1: Avoid the aliases

Having been a judge for the previous 2 Scripting Game competitions as well as competing in the 2 before that, I have seen my share of scripts submitted that didn’t quite meet the cut of what I felt were the … Continue reading

Posted in powershell, Winter Scripting Games 2014 | Tagged , , , | 5 Comments

Custom PowerShell Objects and Performance Revisited

Way back in my earlier days of blogging (Sept 2010), I wrote an article (I recommend you check this one out for more information regarded some of the older styles of custom object creation) that talked about the performance differences … Continue reading

Posted in powershell | Tagged , , | 4 Comments