Tag Archives: functions

Friday Fun – Get Ranked Object

Earlier this week on Google Plus, Hal Rottenberg posted a PowerShell idea he had. His goal was to identify a group of objects that would be statistically significant. For example, given a collection of files, group the files by size … Continue reading

Posted in PowerShell, Scripting | Tagged , , , , | Leave a comment

Add WhatIf Support to Your PowerShell Scripts

In one of my recent articles for SMB IT, I included a PowerShell module. In the article I referenced that I included support for -Whatif in one of the functions. I was asked on Twitter to explain what I meant … Continue reading

Posted in PowerShell v2.0, Scripting | Tagged , , | 2 Comments

Friday Fun – Get Number Object

You most likely know that I’m all about the object and the PowerShell pipeline. Everything in PowerShell is an object. Pipe something to Get-Member and you can discover all of the object’s properties and methods (ie its members). Some objects, … Continue reading

Posted in Friday Fun, PowerShell, Scripting | Tagged , , , , , | Leave a comment

Simple Where Filters

The comment about how awkward it is in PowerShell to filter out folders with Get-ChidlItem, or its alias dir, came up the other day on Twitter. I’ll be the first to admit that running a DIR command and wanting to … Continue reading

Posted in CommandLine, PowerShell | Tagged , , , | 4 Comments

Convert Text to Object

Today I have another tool in my new battle regarding turning command line tools into PowerShell tools. The bottom line is we want to have objects written to the pipeline. At the PowerShell Deep Dive in Frankfurt there was a … Continue reading

Posted in CommandLine, Conferences, PowerShell | Tagged , , , , , , | 9 Comments