-
Recent Posts
- Scripting Guys Blog Posts on Using Visual Studio Code for PowerShell Development
- Preview of Module Build and Publish with Visual Studio Code and the PowerShell Extension
- Breakpoint Enhancements in the v0.5.0 PowerShell Extension for Visual Studio Code
- Creating a PowerShell Command that Process Paths using Visual Studio Code
- New Release of PowerShell Extension For Visual Studio Code
Recent Comments
Archives
- February 2017
- March 2016
- February 2016
- December 2015
- September 2015
- August 2015
- July 2015
- May 2015
- April 2015
- January 2015
- November 2014
- October 2014
- July 2014
- April 2014
- October 2013
- September 2013
- July 2013
- May 2013
- April 2013
- January 2013
- September 2012
- July 2012
- April 2012
- March 2012
- January 2012
- December 2011
- October 2011
- September 2011
- March 2011
- September 2010
- July 2010
- May 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- June 2007
- May 2007
- March 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- September 2005
- August 2005
- June 2005
- March 2005
- January 2005
- December 2004
Categories
- .NET
- .NETCore
- Agilent T&M Toolkit
- Agilent VEE
- Books
- Conference
- CSharp
- Effective PowerShell
- LINQ
- Microsoft
- Monad
- MSBuild
- Music
- PDC
- PowerShell
- PowerShell 2.0
- PowerShell 3.0
- PowerShell 4.0
- PowerShell 5.0
- PowerShellEditorServices
- PSCX
- PSScriptAnalyzer
- Software Architecture
- Software Development
- Uncategorized
- VSCode
- Windows 7
- WinRT
Meta
Category Archives: Effective PowerShell
Effective PowerShell Item 16: Dealing with Errors
There are several facets to the subject of errors in PowerShell that you should understand to get the most out of PowerShell. Some of these facets are error handling, error related global variables and error related preference variables. But the … Continue reading
Posted in Effective PowerShell
9 Comments
Effective PowerShell Item 15: Using the Output Field Separator $OFS
$OFS is the “output field separator” variable. Whatever value it contains will be used as the string separator between elements of an array that is rendered to a string. For example, consider the following array definition and subsequent rendering to … Continue reading
Posted in Effective PowerShell
Leave a comment
Effective Windows PowerShell: The Free eBook
I’ve gotten some requests to turn my Effective PowerShell blog posts into booklet form which I have done. I expect that this document will grow over time as I add new items. If you have feedback (typos, suggestions, etc) please … Continue reading
Posted in Effective PowerShell
19 Comments
Effective PowerShell Item 14: Capturing All Output from a Script
Both version 1 and version 2 of Windows PowerShell have a nasty limitation when it comes to capturing *all* output from a script. First up, within a script there is no way to redirect host (Write-Host), verbose, warning and debug … Continue reading
Posted in Effective PowerShell
13 Comments
Effective PowerShell Item 13: Comparing Arrays in Windows PowerShell
PowerShell has a lot of useful operators such as -contains which tests if an array contains an particular element. But as far as I can tell PowerShell doesn’t "seem" to provide an easy way to test if two array’s contents … Continue reading
Posted in Effective PowerShell
6 Comments
Effective PowerShell Item 12: Understanding ByValue Pipeline Bound Parameters
In item 11, I covered ByPropertyName pipeline bound parameters. In this post, I’ll cover the other variety of pipeline binding – ByValue. ByValue binding takes the input object itself and attempts to bind it by type using type coercion if … Continue reading
Posted in Effective PowerShell
6 Comments
Effective PowerShell Item 11: Understanding ByPropertyName Pipeline Bound Parameters
Everybody likes to be efficient, right? I mean we all generally like to solve a problem in an efficient way. In PowerShell that usually culminates in a "one-liner". Honestly for pedagogical purposes I find it better much better to expand … Continue reading
Posted in Effective PowerShell
3 Comments
Effective PowerShell Item 10: Understanding PowerShell Parsing Modes
The way PowerShell parses commands can be surprising especially to those that are used to shells with more simplistic parsing like CMD.EXE. Parsing in PowerShell is a bit different because PowerShell needs to work well as both an interactive command … Continue reading
Posted in Effective PowerShell
12 Comments
Effective PowerShell Item 9: Regular Expressions – One of the Power Tools in PowerShell
Windows PowerShell is based on the .NET Framework. That is, it is built using the .NET Framework and it exposes the .NET Framework to the user. One very nice feature of the .NET Framework is the Regex class in the System.Text.RegularExpressions namespace. … Continue reading
Posted in Effective PowerShell
2 Comments
Effective PowerShell Item 8: Output Cardinality – Scalars, Collections and Empty Sets – Oh My!
In the last post Effective Powershell Item 7: Understanding "Output", we covered a lot about PowerShell output. However there is a bit more you need to understand to use PowerShell effectively. This post concerns the cardinality of PowerShell output. That … Continue reading
Posted in Effective PowerShell
9 Comments