database-tools

Define Variable Checkers

When you assign a mandatory data type to a variable, then this will improve script robustness: whenever a value is (accidentally) assigned to that...

Enabling Visual Styles

When you use Windows Forms dialogs and windows, you may have noticed that they show differently, depending on whether you launched your script from...

Analyzing Script Blocks

Script blocks are simply pieces of PowerShell code. You probably use them all the time in scripts and functions. A script block is defined by braces...

Getting Screen Information

Ever needed to know the current screen resolution or related screen information? Here's an easy way of getting that information: Add-Type...

Disassembling C# Code

Adam Driscoll, another PowerShell MVP, has published a function called Get-MemberBody to PoshCode: http://poshcode.org/4127. In conjunction with the...

Using RegEx to Filter Files

Get-ChildItem supports basic wildcards, but it does not support the rich feature set of regular expressions. If you combine Get-ChildItem with...

Reversing GUIDs

Active Directory and other services sometimes use a custom GUID format. To convert a GUID to that format, all blocks of the GUID need to be...

Replace Escape

There are two ways for replacing text, and both have their advantages and pitfalls: Each string has a Replace() method which works very...

Examining Scheduled Tasks

There is a COM interface that you can use to select and dump any scheduled task definition. Just make sure you are running PowerShell with full...