database-tools

Using Comment-Based Help

PowerShell v.2 allows your functions to seamlessly integrate with the built-in PowerShell Help system. All you need to do is a Comment-Based- Help...

read more

Using Block Comments

Another new feature in PowerShell v.2 is the introduction of a new block comment. Basically, anything you place between <# and #> will be...

read more

Creating Custom Objects

PowerShell v.2 has a new trick for creating your very own objects that you can then pass to other cmdlets. It is a two-step process. First, create a...

read more

Listing Cmdlet Parameters

Use this line if you need to get a quick list of all parameters that a given cmdlet supports along with a short description: Get-Help dir -para * |...

read more

Network Segment Scan

In a previous tip, we created a Check-Online filter to eliminate offline systems from a list of IP addresses and computer names. Now, find out what...

read more

Create Hardware Inventory

If you need to collect hardware and/or software information from a bunch of remote systems, you should take advantage of the Check-Online filter...

read more

Finding Unused Drives

You can use a cmdlet called Test-Path to test whether a given path exists. However, existing drives not currently in use, such as a CD-ROM drive,...

read more

Exporting Certificate

PowerShell has a cert: drive that lets you explore all certificates installed on your system. Once you locate a certificate, you can then export it...

read more

Download Files With BITS

Windows 7 comes with a new module called BitsTransfer. This allows you to schedule downloads so they can download in the background using the BITS...

read more

How Module Import Works

It is a good idea to check out how PowerShell v.2 automatically detects and loads all available system modules. Simply look at the definition of the...

read more