Casper Stekelenburg
-
If you’ve ever found yourself overwhelmed by the sheer number of parameters in your PowerShell commands, splatting might just be the solution you need. Splatting is a powerful feature in PowerShell that allows you to bundle parameters into a single variable, making your scripts cleaner and more readable.
-
The tale of the missing property and Register-PSRepository.
-
In a previous blog I wrote about PowerShell’s common parameters, today I dive into another aspect of parameters in functions, namely Parameter Sets. Parameter sets allow you to define different sets of parameters for a single function, this helps creating clearer and more intuitive functions. What Are PowerShell Parameter Sets? Parameter sets allow you to define different parameter groupings for a function or cmdlet. These groupings, or “sets,” mean that certain parameters can only be…
-
PowerShell’s common parameters are a set of parameters that are automatically available to all cmdlets and advanced functions. These parameters provide a consistent way to control the behavior of cmdlets and functions, making it easier to manage and debug scripts. In this post, we will look at the most commonly used common parameters and how to use them.
-
PowerShell has a number of built-in variables that can be used for all sorts of things. One of these variable is $MyInvocation. It is useful when you need detailed information about the context in which a script or function is being executed.
-
When writing scripts, one of the most important aspects to consider is how you name your custom functions. Good naming conventions not only make your code more readable and maintainable but also ensure consistency across your scripts and modules. In this blog post, we will explore the best practices and conventions for naming custom functions.
-
When we want to sort IP Addresses in Powershell the normal result is alphabetical, but that is not wat we want. How to solve?
