About Me

I am certified Microsoft professional, a Microsoft MVP and an IT veteran with almost 20 years of experience, much of it spent as an IT consultant specializing in Windows server technologies. I work today as an independent author, trainer and consultant. I've co-authored or authored several books, courseware, and training videos on administrative scripting and automation. My latest book is Managing Active Directory with Windows PowerShel: TFM 2nd Ed.(SAPIEN Press 2011).
-
Please consider a donation if I've been of any help or assistance. Thank you.
Blog Sponsors
coming soon....Sponsored Links
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 Get-Content, PowerShell, regex, Regular Expressions, Scripting, Select-Object
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 Get-Content, Get-Service, parameter, Pipeline, PowerShell, Select-Object
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 ForEach, Get-Content, PowerShell, Scripting
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 functions, Get-Content, Help, PowerShell, Scripting
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 functions, Get-Content, parameters, PowerShell, Scripting, v2, Write-Host
Comments Off



