fbpx

PowerShell Training: Switch Parameter Validation

Estimated Reading Time: 6 minutesSummary There are many ways to validate the presence of a [switch] parameter within a PowerShell script or function, but some are definitely better. This post provides a PowerShell function that demonstrates the results of various...

PowerShell Training: Sorting Version Numbers

Estimated Reading Time: 7 minutesSummary Sorting version numbers as strings can fail to order them correctly, but the [Version] type accelerator can be used to sort them correctly. Introduction Here at Model Technology Solutions, we spend a lot of our time writing...