Showing results for January 2009 - Page 5 of 5 - PowerShell Team

Jan 2, 2009
0
0

How To Write a Console Application in PowerShell with Add-Type

PowerShell Team
PowerShell Team

Windows PowerShell CTP3 has a lot of very cool things.  CTP2 introduced the Add-Type cmdlet, which allowed you to dynamically compile C# in PowerShell.  It was actually possible to use the CompilerParameters to Add-Type to make a console application, but it wasn't particularly easy.  In CTP3, we've made this a lot easier to do. ...

CTP3HowToAdd-Type
Jan 2, 2009
0
0

Get-Verb

PowerShell Team
PowerShell Team

.cmdletname { font-size:large } .cmdletsynopsis { font-size:medium } .cmdletdescription { font-size:medium } .cmdletparameters { font-size:medium } th { font-size: medium; font-style: italic } table { border: 1 } When I write a PowerShell function, I try to ensure that it follows the ...

Advanced FunctionsGet-Verb
Jan 2, 2009
0
0

How and Why to Use Splatting (passing [switch] parameters)

PowerShell Team
PowerShell Team

On our internal discussion list, someone just asked about how to pass switch parameters from one function to another.  This person asked this as "Why can't [switch] parameters be passed as parameters?". My short answer was simple: "They Can Be" Answering this question is a great way to illustrate the value of a PowerShell...

[switch]Splatting
Jan 2, 2009
0
0

A Module to Create Modules and Advanced Functions

PowerShell Team
PowerShell Team

[1/3/09 Update - the original link to the attachment containing this code was broken but is now fixed.  Sorry. jps] It is hard to overstate how important Modules and Advanced Functions are.   If you are a PowerShell user - you need to take the time to learn these new mechanisms and use them as your first choice in ...

CTP3Jeffrey SnoverAdvanced Functions