News

If you've been building PowerShell scripts for a while now you've surely came across instances where you need to reuse a particular snippet of code. Rather than copying and pasting that snippet of ...
A PowerShell function is a reusable block of code that can be designed to behave just like a cmdlet. It is written in PowerShell's relatively easy to learn scripting language which for the most part ...
How To Validate Input in PowerShell Functions, Part 2 As Brien demonstrates, string validation is not the only type of input validation that PowerShell can perform.
Write functions with clear inputs (parameters) and outputs to make them flexible. For example, instead of hard coding a username in your script, allow it to be passed as a parameter.
PowerShell functions act as small, reusable building blocks of code that streamline your workflow and make your scripts more efficient. We’ll explain more about PowerShell functions and share basic ...
Old-school script authors use if test <condition>, and you'll sometimes see that show up, but it's rare nowadays. This month, I want to finish this discussion by exploring how the return command ...
PowerShell modules allow you to combine multiple scripts to simplify code management. Learn step-by-step instructions for creating and using these modules.