December 2008 - Windows PowerShell Team Blog

  • I'm Changing My Name To Sznarwakowski

    I was just reading a blog post where they were showing al the SCVVM commands in a list.  I was going to refer them to my blog which shows how the display that list of commands in a really nice format.  I have no idea where that blog post is so I decided to search for my name and scvvm.  Here is what I got:   I think I'm going back to the old family name:  Sznarwakowski...
  • My 2009 Resolutions

    I tend not to be very big on resolutions but I decided to make an exception this year and then see how it goes going forward.  I thought you might find it interesting to see the things that keep me up at night.  Let me be absolutely clear about one thing: These are my PERSONAL resolutions not team or company intentions, plans or commitments.  I took 30 minutes to jot down the things...
  • PowerShell_ISE Scripting: ConvertTo-Comment

    Let me combine a couple of things.  1) When I posted my PowerShell_ISE profile, I included a function Goto-Line that is now builtin to the ISE so I reposted the blog with this function commented out. I commented it out instead of deleting it because I wanted to provide an example of how to do it. 2) Vivek Sharma left a comment asked about programmatically controlling indentation so I gave a couple...
  • My Powershell_ISE Profile Part 2

    I messed up. First let me remind you that what you have are CTP bits and that CTP bits are subject to change. It turns out that we are tweaking the PowerShell_ISE object model and that the profile I posted does not work with CTP3. I’m sorry for that screw up. You can use the amazing PowerShell_ISE to fix this problem. All you need to do is a search and replace of: CurrentOpenedRunspace.ToolsMenu with...
  • My PowerShell_ISE Profile

    I thought I would share my PowerShell_ISE profile with you. I haven't done anything to clean this up or document it which I should do before sharing but I figured that it would be better to get some good examples out there and then I can clean it up later. # I'm doing a lot of work with Modules these days so I added a drive to make it easy to # get to. New-PsDrive -Name Mod -PSProvider FileSystem...
  • PowerShell ISE Can Do a Lot More Than You Think

    In CTP2, we released the first version of PowerShell_ISE.  It was VERY rough and primitive and we came close to deciding to wait to CTP3 to ship it.  We decided to go head and ship it in CTP2 because the team got it to critical mass and we wanted to let the world know where we were going as soon as possible and get their feedback. It's been a long time since CTP2 and with CTP3, I think...
  • Get-MarkupTag

    On my personal blog ( Media And Microcode ), I've been posting a series called "Scripting the Web", which introduced a function called Get-MarkupTag. Get-MarkupTag is a very handy little function that coerces individual tag elements of a web page into HTML, so you can scrape data from a webpage. I've updated Get-MarkupTag a tiny bit for CTP3, marking the tag name as value from pipeline...
  • Get-CommandPlugin

    One of the nifty new CTP3 features is command and parameter meta data on functions. In V1, you had to parse a function yourself to extract the parameters. In CTP2, you could use the tokenizer API to parse the function, but extracting parameters this was is error prone. In CTP3, and in V2, you can actually get a dictionary of parameters on the FunctionInfo object. Check it out: Get-Command -type Function...
  • Merry Christmas From PowerShell: The CodeDownloader Module

    Twas the night before Christmas, and all through the net PowerShell lovers were wondering exactly what they might get Their readers were ready, their minds were aware That more joy of CTP3 would soon be there A cmdlet, a function? What has the PowerShell team done? How about a whole module, to share scripts with everyone? Some pluggable functions, to get code to share Scripts from Write-CommandBlogPost...
  • Resolve-ShortcutFile

    If you're like me, you've got a browser favorites folder that is full of wonderful PowerShell code snippets. Ideally, it would be great to have a way to bring those favorite snippets into PowerShell so that my favorites folder becomes a code library. Doing this presents several challenges. The first (and easiest to solve) is getting the web page the shortcut points to out of the .url file....
  • PowerShell v2 Pipelining in 73 (make that 53) Characters

    I started using Twitter and saw a request from Thomas Lee for help about pipelining in CTP3.  The thing about Twitter is that the messages have to be tiny so I wasn’t sure I could answer using it.  It turns out I can solve this problem AND give a usage example in 73 characters.  Here goes: PS> function t{param([Parameter(ValueFromPipeline=1)]$t);process{$t}};1..10|t 1 2 3 4 5 6 7...
  • PowerShell V2 – External MAML Help

    As you’ve probably picked up by now – Advanced Functions are super important.  We’ve been showing a bunch of scripts that have embedded help using comments and dot-tags.  Let me take a second and drill into this. We believe that PS will be used in a wide range of scenarios: simple one liners; personal ad hoc scripts; scripts you share with your friends; scripts you share with the community;...
  • Experiment with PowerShell V1 Without Installing It

    If you are reading this, you probably already use PowerShell but you might know someone that has resisted installing it and trying it out.  Thomas Lee posted a blog HERE with a pointer to a Virtual PowerShell lab on TechNet. This allows you to Terminal Serve into a hosted virtual machine and kick the tires. In other words you get to run PowerShell without installing it. Once they are done – they...
  • Write-CommandBlogPost

    On the PowerShell team, we're big believers in the Virtuous Cycle. As you learn PowerShell more and more, things should get easier and easier to do. Inline help is a great example of the virtuous cycle, because it allows you to write scripts in such a way that they're easy to learn about the same way you learn about most things in PowerShell (with Get-Help). The other great source of learning...
  • Configuring PowerShell for Remoting – Part 1

    The features discussed in this blog post depend on PowerShell CTP3 release. Details about PowerShell CTP3 can be found at http://blogs.msdn.com/powershell/archive/2008/12/23/early-christmas-present-from-powershell-team-community-technology-preview-3-ctp3-of-windows-powershell-v2.aspx PowerShell v2 introduces a new capability to manage systems in your organization remotely. We directly support hosting...
1 2 3 Next >
Copyright 2012 PowerShell.com. All rights reserved.