News

Posey's Tips & Tricks. How To Validate Input in PowerShell Functions, Part 1. If your automated script takes action based on a value, it's critical to make sure the value is correct.
You can then invoke this function using the following: PS > Do-Something. I did something! As you can see, the code runs inside the function when invoked. Adding parameters. By incorporating ...
The functions we are using here are called "basic" PowerShell functions. If you haven't already built advanced PowerShell functions yet, I encourage you to learn as they include much more ...
1) An introduction to PowerShell modules: Modules contain scripts, functions, and cmdlets designed to add extra capabilities while streamlining task automation.
One of the features I like about PowerShell is automatic variables. Automatic variables save you time and provide a more consistent approach at figuring out what's going on under the hood of your ...
Below, find out how to sync your WSUS server with Microsoft update, how to query all the computers your WSUS server is managing and how to use PowerShell commands in WSUS. 1. Sync your WSUS server ...
In Part 1 of this series, I showed you an example of PowerShell's native validation capabilities.. In that installment, I wrote a function that accepted a text string as input. The function then ...