msorens Author

Do Anything in One Line of PowerShell

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tools

PowerShell provides a tremendous boon to productivity for computer professionals of all types. But, you have to admit: it can be a bit daunting to get up to speed! Indeed, …...

Read More

PowerShell Gotchas

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tutorials

You can certainly find a number of articles around that present PowerShell pitfalls that can easily trip you up if you are not careful. I took a different approach in …...

Read More

Pitfalls of the Pipeline

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tools, Tutorials

Pipelining is an important concept in PowerShell. Though the idea did not originate with PowerShell (you can find it used decades earlier in Unix, for example), PowerShell does provide the …...

Read More

Create Custom Monitors with PowerShell

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tools

Sometimes, as a developer, you want to be be able to keep track of free space on a drive, the size of a log, the load on your CPU, the …...

Read More

Every pithy witticism begins with quotation marks

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tutorials

“To be or not to be”. Without getting into a debate over whether Shakespeare was musing about being a logician, suffice to say that in writing prose, the rules of …...

Read More

Complete Guide to PowerShell Punctuation

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Training

Quick as you can, can you explain what each of these different parentheses-, brace-, and bracket-laden expressions does? ${save-items} ${C:tmp.txt} $($x=1;$y=2;$x;$y) (1,2,3 -join '*') (8 + 4)/2...

Read More

Practical PowerShell Unit-Testing

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tools, Tutorials

By the time you are using PowerShell to automate an increasing amount of your system administration, database maintenance, or application-lifecycle work, you will likely come to the realization that PowerShell …...

Read More

Documenting your PowerShell API–solved!

PowerShell for Admins, PowerShell for Developers, Tips and Tricks, Tools, Tutorials

Long has it been known how to easily document your PowerShell source code simply by embedding properly formatted documentation comments right along side your code, making maintenance relatively painless…  ...

Read More