03/13/2023

Automate Cursor Movement on Windows with PowerShell

In this technical blog post, we explore how to automate cursor movement on a Windows screen using PowerShell. With our step-by-step guide, you can learn how to import the necessary libraries and define a C# class and method to easily move the cursor on the screen within your PowerShell script. By the end of this post, you'll have a better understanding of how to automate cursor movement in PowerShell, and how to use PowerShell to streamline various repetitive tasks.
03/08/2021

Randomly Generate a Passphrase Using PowerShell

The fun part for me is working with an array. In writing this I have added almost 1000 words to this. Now, I am not going to post the entire array for this project, however I will give you a great starting point and you can add as many as you like. To start I created a variable named $namelist. I know original. It looks like so:
12/15/2020

Listen For KeyPress Using PowerShell

Today we start with something new. Listen For KeyPress Using PowerShell. Simple enough. We want to run a script and have it output what we type […]
12/14/2020

Create Multiple Variables Using An Array Operator

This command does all the work for us in creating the variable assigning the name, and value. We use the New-Variable command with -Name using the inline variable...
12/11/2020

Creating New Firewall Rules Using PowerShell

The two above commands are the same as the one-line commands. Well, there are two differences. We are using the modifier -InterfaceType to specify the wireless interface. We are also using the tilde (`) to define line breaks in the console. The interpreter still sees this as one line, the difference is it's much easier to read like this, that is if you are human.
12/09/2020

PowerShell Backup GPO Settings

The if statement says if the directory of $path is not there, then make a new directory with the details from $path. That way we can save the files to the directory and easily look them up later. We are also verifying no data is being overwritten by doing this.