Home
Aaron the Admin
Cancel

Get Random with Excluded Numbers

An interesting question came up about using the Get-Random cmdlet to return a random number but with a predefined list of numbers to exclude. Even though Get-Random will return a random number, yo...

PowerShell Core Updating PSModulePath–from Windows PowerShell PSModulePath

The PowerShell gallery has a script module (credit: Steve Lee [MSFT]) you can install that appends your Windows PSModulePath contents to the PSModulePath in PowerShell Core. This lets you access mo...

Get All Dates In A Given Month

This post shows you how to use PowerShell to get actual dates for a given month, not just how many days are in that month. For instance, using the .NET static method [DateTime]::DaysInMonth() only...