Category Archives: PowerShell

Information related to PowerShell

Using PowerShell in Azure

October 31, 2024

Let’s start by saying the PowerShell is one of the most opaque and crappy languages that was ever created. I’m glad some people like it – but as far as me, it sucks. Adding PowerShell to Azure YAML Build Script Adding PowerShell scripts is easy. The example below shows how to create a script with embedded PowerShell code.… Read More »

PowerShell Commands

August 21, 2024

File Search Related Operations Microsoft help on items in this section. Find Processes Get-Process (alias gps) allows you to get all running processes on your machine. It can also be used to create a filtered list. Find all processes with name that matches “mmc”. We are looking for an exact match so don’t need double quotes. All of… Read More »

PowerShell: Aliases

January 27, 2023

PowerShell defines short forms forms for the long hyphen separated commands it provides. You can see the current aliases for you system by entering: Below is the result for a typical system. I am only providing the “Name” column. Also, I massaged the output so the columns would line up and be easier to read.

PowerShell: Environment Variables

January 27, 2023

We can get a single variable. Or get all of them at once. However, since each environment variable result is truncated to a single line, you will not be able to see all of certain ones – like Path. Use below to wrap all the values to multiple lines. Set Environment Variables To set an environment variable for… Read More »