database-tools

Waiting for Process Launch

PowerShell has a built-in support to wait until a process or many processes end: simply use Wait-Process. There is no support to do the opposite:...

read more

Display Message Box Dialog

PowerShell is console-based, but sometimes it would be nice to add some simple dialogs. Here is a function called Show-MessageBox that can display...

read more

Checking for AC Power

Ask WMI to find out whether your notebook is connected to AC: #requires -Version 1 $battery = Get-WmiObject -Class Win32_Battery | Select-Object...

read more

Creating Enumerations

PowerShell 5.0 added the capabilities to define enumerations but in older PowerShell versions, you can create enumerations too, simply by compiling...

read more

Crazy Prompt Function

The built-in "prompt" function is invoked whenever PowerShell completed interactive input, and you can use it to change the way your...

read more

Using Paths in Prompts

The default PowerShell prompt displays the current location. When you are deep inside nested folders, this steals room for your actual input, and...

read more