Tag Archives: Get-Content

Friday Fun Get Content Words

Recently I was tracking down a bug in script for a client. The problem turned out to be a simple typo. I could have easily avoided that by using Set-StrictMode, which I do now, but that’s not what this is … Continue reading

Posted in Friday Fun, PowerShell v2.0, Scripting | Tagged , , , , , | Leave a comment

ByValue, I Think He’s Got It

Recently I responded to an email from a student seeking clarification about the difference between ByValue and ByProperty when it comes to parameter binding. This is what makes pipelined expressions work in Windows PowerShell. When you look at cmdlet help, … Continue reading

Posted in Best Practices, PowerShell | Tagged , , , , , | 1 Comment

Friday Fun Create Numbered File

I was working on my guest commentary for the upcoming Scripting Games and started thinking I would need a line numbered version of my solution to help explain. Turns out I didn’t go down that road, but in the process … Continue reading

Posted in Friday Fun, PowerShell ISE, PowerShell v2.0, Scripting | Tagged , , , | Comments Off

Get-NumberedContent v2

I wasn’t completely satisfied with the updated version of my Get-NumberedContent function. You should still refer to the earlier post for details on how to use the function. But I had some issues with the previous version and realized there … Continue reading

Posted in PowerShell v2.0, Scripting | Tagged , , , , | 3 Comments

More Fun with Get-NumberedContent

As much fun as the original Get-NumberedContent function was after using it for awhile I realized I had imposed some limitations. I also realized it needed to be more flexible. What if someone wanted to specify a different color or … Continue reading

Posted in PowerShell v2.0, Scripting | Tagged , , , , , , | Comments Off