Powershell

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

Getting Image Details

PowerShell can access COM-Objects as there are many useful objects present on a system. For example, WIA.Image can return all kinds of useful...

read more

Picking Random Items

In PowerShell V2, Get-Random retrieves as many random numbers as you like, allowing you to use this random number generator in many scenarios. A...

read more

Restarting Processes

You may want to occasionally restart a single-instance process. However, shutting down a process does not necessarily mean it is killed in that...

read more