Prof. Powershell


Where Shell We Begin?

Customize graphical elements of the user's desktop via the Shell.Application COM object. Yes, it can be done through PowerShell.

Be Selective with Select-Object Cmdlet

The Select-Object cmdlet lets you get what you always want, at least as parameters are concerned.

Cool ISE

At the heart of this awesome no-frills editor is the $psise object, handy for configuring the ISE how you want it.

How Do You Measure Up?

Measure-Object cmdlet has some interesting properties, but it's up to us to figure out how to use them creatively.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Failure is Not an Option with JobStateInfo Property

The JobStateInfo property can expose the failure of background processes.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Invoke-Sesame

Use the Invoke-Item cmdlet to open files and their application types -- much like Windows does when double-clicking a file.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Hidden Treasure of the Example Sample

Get direct access to the Example property and you'll open new doors to knowledge.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Switch Way Did They Go?

Pair up Regex with the Switch construct to get what you need, in plain English.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Express Yourself with the Invoke-Expression Cmdlet

PowerShell Functions can save you time. Scriptblocks save you even more time.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Scriptblock Surprises

PowerShell Functions can save you time. Scriptblocks save you even more time.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Process Possibilities

The PowerShell team is sneaky. They've given you some extra properties in objects that you can use to your advantage.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

A Defining Moment

The beauty of PowerShell is simplifying the oft-repeated task. Here's an example where you can create functions on the fly for common troubleshooting.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Wide Load

See more and get more with the Format-Wide cmdlet.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Module Testing

Make a statement for checking out modules.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Parameter Peeking

Tab completion and Get-Command offer two ways to discover parameters for cmdlets without resorting to reading the cmdlet help.

  • Code Download

    File Type: .x-zip-compressed File Size: 920 Bytes

Most   Popular