As a follow-up to our Advanced PowerShell Functions: Begin to Process to End article, the following article will dive deeper into the CmdletBinding attribute.
Let’s start with defining a function:
Function Test-ScriptBlock
{
[CmdletBinding()]
Param
(
[Parameter(ValueFromPipeline)]
[int[]]
$Numbers…
Read More
Syntax coloring for programming languages was originally introduced as a visual aid to assist developers in assessing the syntactical correctness of code. Unlike the squiggly red or green underlines in Microsoft Word colors indicate validation rather than error. So while…
Read More
With the recent successful launch of iPowerShell v2 for iPhone and iPod touch, we have turned our attention to another platform, the Apple iPad. After a month of diligent work, we are pleased to announce that iPowerShell v2.1 will be…
Read More
Getting PrimalSense for a COM object that you didn’t have installed on your development machine is fairly simple: Copy the TLB file (type library) to you machine, associate it to a progid and you are all set.
With PowerShell Cmdlets…
Read More
ChangeVue 2009, SAPIEN Technologies’ source control system, is about to get a new way to manage its content: a PowerShell snap-in! That’s right. You will soon be able to manage your existing ChangeVue repositories directly through the PowerShell console or…
Read More
Yes, its finally true. You can finally get your hands on Managing Active Directory with Windows PowerShell: TFM. The book is being printed so you can get your copy today. You can order it today at ScriptingOutpost.com in both print…
Read More
I blogged a few days ago about taking advantage of PowerShell’s history. As I was looking at the history object I noticed the ExecutionStatus property. Most of the time it should be “completed”. But what about commands that failed? Why…
Read More
In the Pixar film Cars, Mater demonstrates to Lightning McQueen how to drive backwards. Lightning is astounded. Mater explains, "Don’t need to know where I’m going as long as I know where I’ve been." Probably not the exact quote but…
Read More
As you may be aware, PowerShell cmdlets are supposed to be named with a standard verb. I usually suggest that scripters name scripts and functions also using a standard verb, although it is not required and I certainly bend the…
Read More
Quest Software and the PowerGUI team have been quietly working on a private beta of the new version of their popular and effective cmdlets for managing Active Directory. That process has completed and the beta is now open to the…
Read More