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/06/2020

Create a File Template & Open With VSCode

At some point you write, or start writing many, many scripts, some are one line, some are much much bigger. In either case, copying and pasting relevant data into each newly created script is tedious and time-consuming.
12/04/2020

Run As Administrator

Today we continue our series that answers common questions, or questions that have been asked about/of PowerShell. Today we are talking about Run As Administrator. What […]
12/02/2020

Rename Files With PowerShell

he first line tells PowerShell that the variable $files is going to host the list of files that we need to loop through. The next line begins to define the foreach statement by saying for each $file in $files.
12/01/2020

Query Windows Device for Memory Statistics

To start resolving this we will create a new variable and filter out some of the data from the $RAM variable. To do that we use [math]::Round which tells PowerShell that we are asking it to, one, do math. Two, round the data in the following brackets. We then take the $RAM variable and Dot(.) source it for the TotalVisibleMemorySize, and do it all down to the 1MB size.