Showing results for 2009 - Page 17 of 17 - PowerShell Team

Jan 4, 2009
0
0

PS> Dir –A D The Screencast

PowerShell Team
PowerShell Team

I decided to experiment with a screencast.  This is my first and I have no idea what I’m doing so please forgive me if it sucks.  I’d like to know whether you find this format useful or not and then specific feedback about how to make the screencast better (e.g. I recorded it at 1024x768  - is that good or too large?). In my previous...

CTP3PowerShell V2Jeffrey Snover
Jan 4, 2009
0
0

Extending and/or Modifing Commands with Proxies

PowerShell Team
PowerShell Team

There are so many powerful features in V2, it is hard to know where to begin.  This one is going to blow to top of your head off when you understand what it enables you to do. In this blog, I talk about Proxy Cmdlets which is the ability for one Cmdlet to call another.  You could always do this but to do it right has always been very diff...

CTP3PowerShell V2Jeffrey Snover
Jan 4, 2009
0
0

Programming PowerShell_ISE

PowerShell Team
PowerShell Team

I recently wrote a blog Powershell_Ise Can Do a Lot More Than You Think where I described the ability to program it to do new stuff.  Karl Prosser has picked up the baton and written some cool scripts programming the PowerShell_ISE to make it do some of the features that he had put into his amazing PowerShell Analyzer.  I encourage you to...

Jan 3, 2009
0
0

Diagnosing Here-Strings With PowerShell_ISE

PowerShell Team
PowerShell Team

James Brundage posted a blog entry How To Write a Console Application in PowerShell with Add-Type which used a here-string.   One user (lcr) copied and pasted the text and got the following error: Unrecognized token in source text. At line:1 char:72 + Add-Type -OutputType ConsoleApplication -OutputAssembly HelloWorld.exe  &...

CTP3PowerShell V2Jeffrey Snover
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. Ther...

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 PowerSh...

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 implement...

CTP3Jeffrey SnoverAdvanced Functions