PowerShell

Getting Help

Functions

File Management

Input/Output

Clipboard Manipulation

Useful Commands

Formatting Strings

I stumbled upon a useful article: How-to: The -f Format operator

As practice, I wrote the following command, which prints the elapsed when launching a new instance of PowerShell, up to the first 3 decimal places:

"{0:n3}s" -f (Measure-Command { pwsh -NoLogo -NoProfile -Command 1 }).TotalSeconds

Configuring the Network

Removing Widgets

Using the Clipboard

Downloading Files

Invoke-WebRequest -Uri 'https://URL.ext' -OutFile 'FILE.ext'

Extract Archive

Expand-Archive -LiteralPath 'ARCHIVE.zip' -DestinationPath 'FOLDER'

Computing Checksums

Get-FileHash -Algorithm 'SHA256' -Path 'FILE'

Clear Recycling Bin

TIL There is a Clear-RecycleBin module. How neat!