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 more flexible array, especially for adding more items. # Link to the video: https://youtu.be/rvGd8kxXlVc # What is an array and why do I need it?...

23 August 2021 · 3 min · 546 words · Kamil

PowerShell for IT Professionals [#11] – Variables

In this lesson we’re going to learn how what Variables are, why it’s good to use them and how to actually create them. We will then assign various values to variables to and use them solely, and in parameters. We will also have a look at foreach loop so that we can e.g. ping multiple computers using single variable with multiple objects in it. Exercises Use Get-Command to find all commands that allow you to manage variables....

29 August 2020 · 2 min · 371 words · Kamil