database-tools

Playing WAV Sounds

PowerShell 3.0 or later To play a WAV sound file in a background process, PowerShell can use the built-in SoundPlayer class. It accepts a path to a...

read more

System Uptime

All PowerShell Versions Windows starts a high definition counter each time it boots, and this counter will return the milliseconds the system runs:...

read more

WMI Device Inventory

All PowerShell Versions The WMI service can report plenty of details about the computer hardware. Typically, each type of hardware is represented by...

read more

Copying Command History…

All PowerShell Versions If you played with PowerShell and suddenly realize that you would actually like to keep the commands you played with, try...

read more

Using the OpenFile Dialog

PowerShell 3.0 and newer Here’s a quick function that works both in the ISE editor and the PowerShell console in PowerShell 3.0 and above):...

read more

Logging What a Script Does

All PowerShell versions You probably know that in a PowerShell console (not the ISE editor), you can turn on logging: PS> Start-Transcript This...

read more