Category: Tech
-
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…
-
Prepare Hyper-V template of Windows Server 2016/2019
Deploying a new server is always fun! Well, at least the part after ISO download, installation, patching. Having said that, why not create a template so that you jump right into the fun? So we are essentially going to create a preconfigured VHDX file that can be attached to the newly created VM, and it…
-
Restarting VSS Writers with PowerShell script
VSS Writers are responsible for backups – if they stop working, then backups might fail. The solution to that is restarting VSS Writers, but the problem here is that there are many, and at least out of the box, there’s no mechanism to make this automatic… but there’s PowerShell. I’m not interested in your code,…