Author: Kamil Pro
-
PowerShell Parameter Attributes – validate, group, require params and add pipeline to your function
Having properly configured parameters help your users to understand the use of your function. It also helps fellow developers to appreciate the intended use of the function. In addition, it gives you more control of how the code flows through your script. Parameter attributes is what takes parameters to the next level – you can…
-
PowerShell function – converting script into function with parameters
So you’ve been writing your scripts for some time and wondering how to make them more PowerShell-like, so that they can be invoked from the console like all the other cmdlets? In this quick video I’ll show you how to convert a sample script into function, add parameters and indicated to your user how to…
-
PowerShell PSCustomObject – Custom Object, the way it was meant to be
Everything is an object in PowerShell, and ability to create own object allows for one more way of controlling and handling data. In this video I’ll take you through the steps of creating PSCustomObject, working with its properties to doing more advanced topics – like adding methods and types to the object.
-
PowerShell Hash Table – Storing key value pairs
Quick crash course into using hash tables in PowerShell.
-
PowerShell Array and ArrayList – storing multiple items as a one variable
Array is a basic data structure that allows to store multiple items in one variable. In this short video, I’ll show you how to create a basic array, populate it with items, how to add, access and modify items within array. In addition, I’ll present to you how to use ArrayList – which is much…
-
PowerShell Switch Statement – Different take on branching
One switch statement can replace multiple if/else statements, it makes code more readable and is really easy to use – there’s no reason why you shouldn’t give it a try!
-
PowerShell For loop
For loop – do you actually need it, since there’s foreach loop? Turns out, yes – there are situations where for loop comes very handy. In this video I’ll show you the basic syntax of the for loop, going through nested for loops to end up with real case scenario from Azure Application Insights.
-
PowerShell If statement – controlling the flow of your code
In this video we are exploring how to use If statement in various scenarios. If statement allows you to take tide control over the execution of your code, by dictating your script what to do in a given situation.
-
Managing software with chocolateyManaging Software with Chocolatey – Automate installation and updates of your applicationsManaging software with chocolatey
Software management is not trivial task. Preparing for silent deployment is challenging, and even if you manage to install the application, how to keep it up to date? Chocolatey is package manager for Windows, that can fully automate lifecycle of your software. In this video, I’ll show you how to install Chocolatey, then how to…
-
Deploying software with GPO
Having software consistently deployed across the fleet of computers is one of the key points that can be automated. If I have a choice (and it makes sense), I will always choose GPO over any other solution because it’s embedded into Active Directory thus not requiring installation, learning and maintenance of additional management tool. MSI…