Hashtables are really at the core of PowerShell. The further you dive into the language, the more you realize their broad utility. Today we’ll take a look at how to use them, and where to find them.
No more nested loops to create different arrays based on whether users have a certain property or not. Learn to use Group-Object and experience a whole new level of data structuring.
Classes are an often overlooked tool in PowerShell, familiar for programmers but sometimes foreign and confusing for those new to the world of PowerShell. There are often alternatives to writing classes but there are also situations where it shines. In this post we’ll go through how to create one so that you can learn some of the strengths!
In the Azure DevOps suite there is a service called Artifacts which lets us create our own package feeds with granular access control. We can publish our own modules and scripts to share with others, all using PowerShell.
“I wanted to create a list of objects in PowerShell and it turned out a list is called an array, then what is this arraylist thing?”
PowerShell creates arrays for us when we get several results back from a command, but what are our options when explicitly wanting to declare an array, and how do we work with them?
If you’ve ever been in a situation where you would like to index a lot of pages on a webpage or get the data straight from the HTML because the site doesn’t have an API, PowerShell could have been of help. If you haven’t been in the situation yet, check out these simple tricks you can use to gather raw data straight from the web!
How does one go about printing a ton of documents based on data from a source such as a database, REST API or user input? Let’s take a look at how to print documents and graphics using PowerShell!
You’ve heard of them, you’ve seen them, maybe you’ve created some before! Modules in PowerShell are created and used in different ways. In the first part we’ll take a look at creating a module using Plaster and gyPSum and in the second part we’ll do it again but using Azure DevOps pipelines to automate it!
Sometimes you need to work with number systems other than our good old decimal base 10. There are various ways to do this depending on what your goal is and in this post I will list a few easy ways and some more ambitious ones.