database-tools

Adding Type Accelerators

Type accelerators are shortcut names that represent .NET types. For example, you can use [XML] instead of [System.Xml.XmlDocument]. By default,...

read more

Rename PowerShell Scripts

Rename-Item can easily batch-rename large numbers of files, simply by piping file objects into it. Here is a sample that finds all PowerShell script...

read more

Verifying Restore Points

When you create a new restore point with Checkpoint-Computer, you do not get back any feedback telling you whether the operation succeeded....

read more

Backing Up System State

Let's assume your script needs to change a bunch of system settings. The worst thing that could happen is if your script breaks in the middle of...

read more

Installing MUI-Packs

The current PowerShell V3 Beta requires an English Windows operating system. That's bad news for anyone running Windows 7 Professional or Home...

read more

Creating New Scripts in ISE

Often, you first play around with PowerShell commands interactively, and then once those commands do what you want, you can copy them to your script...

read more

Jagged Arrays

This may not be for everyone: have a look at how you can create "jagged arrays". Here's a jagged array which really is a nested array:...

read more

Using Advanced Breakpoints

PowerShell supports dynamic breakpoints. They trigger when certain requirements are met. Like regular breakpoints, they all require that your script...

read more

Matching Stars

Asterisk serve as a wildcard, so how would you check for the presence of an asterisk? In a previous tip we used regular expressions for this, but...

read more

Lunch Time Alert

Here's a fun prompt function that turns your input prompt into a short prompt and displays the current path in your PowerShell window title bar....

read more