database-tools

Parse an Exact Date

If you need to parse a date or time information out of raw text, and if the date and time format does not adhere to the standards of your operating...

read more

Compare Versions

Ever wanted to compare software versions? If you do it like this, the result is off: PS> '3.12.11.100' -gt '11.1.22.91' True...

read more

Finding Executable Path

Here is a one liner telling you the exact location of the executable of any running process. The example returns the path to the PowerShell...

read more

Doing Things Forever

If you want PowerShell to run forever, for example in order to continuously ping a site, use a simple endless loop: #requires -Version 2...

read more

Use Ctrl+Space in ISE!

The PowerShell ISE opens IntelliSense menus frequenty and helps you write code. Sometimes, however, IntelliSense does not pop up automatically,...

read more

PowerShell Killing Itself

If you schedule a script as a scheduled task, or call it externally, and want to make sure the PowerShell process really ends, here is a brute force...

read more

Invoking Code Repeatedly

Sometimes you might want to run some command multiple times until it runs successfully. Here is a function that shows a way to do this: #requires...

read more

Saving Persistent Data

Sometimes a script needs to save information in a persistent way. Maybe you have a list of computers that you'd want to contact, but only some...

read more

Use WMI the Modern Way!

WMI is a powerful technique to find out information about local or remote computers, and you may have used Get-WmiObject before to do so (if not,...

read more