database-tools

Getting New NTFS Cmdlets

PowerShell 3+ / PowerShellGet In the previous tip we explained PowerShellGet. This module ships with PowerShell 5.0 but is available for download on...

Exporting Modules across the Network

PowerShell 3+ Did you know that you can easily export modules from other computers to your local machine? Assume you don’t have the RSAT tools...

Debugging Other PowerShell Processes

PowerShell 5 Beginning with PowerShell 5.0, the PowerShell ISE can connect to other processes that run a PowerShell runspace, display the source...

Reading NTFS Permissions

PowerShell 2+ NTFS permissions are represented by complex object hierarchies that are hard to read. A much simpler way is to output the structure in...

New Delayed Output in PowerShell 5.0

PowerShell 2+ Let’s do two things. First, have a look at a useful small new function that does DNS resolution. Then, let’s discuss why...

Test-Driving PowerShellGet Module

PowerShell 3+ PowerShell 5.0 ships with a new module called PowerShellGet, and on older PowerShell versions, you can easily download and install...

Type-Based Parameter Binding (Part 2)

PowerShell 2+ In a previous tip we introduced automatic type-based parameter binding. Here is a use case. The function Test-Binding accepts files...

Find All Writeable Object Properties

All Versions .NET objects often have properties that you can read to retrieve information. Some of these properties may actually be writeable, so...

Creating Custom Mandatory Parameters

All Versions While you can declare a parameter as mandatory, this leaves not much control to you. If the user omits the mandatory parameter,...

Use a Shorter Prompt

All Versions By default, PowerShell displays the current path in its input prompt which wastes as lot of space. When you overwrite the...

Doing Things in Parallel

Any version By processing things in parallel rather than sequential, a script can complete much faster. Here is an example that uses background jobs...

More Splitting Fun

In the previous tip, we explained how you can use a regular expression to split strings in groups of a given length. Let’s explore what else...

Splitting Groups

All PowerShell Versions Ever wanted to split a string in chunks of a given length? Regular expressions can help. Here is an example that splits a...

Using Form-Based Windows in PowerShell

WPF-based windows are the preferred way to create user interfaces this way - because the code is much easier to write, shorter, and WPF scales well...

Safely Opening WPF Windows

In the previous tip we explained how you can create WPF-based windows in PowerShell. However, when you play with WPF code inside PowerShell ISE, it...

1 80 81 82 83 84 159