Casper Stekelenburg
-
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 […]
-
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?
