Blog - Title

January, 2007

  • Windows PowerShell Blog

    Managing Processes in PowerShell

    • 13 Comments
    Several people have asked recently about how to manage processes in PowerShell. This blog post should answer a number of those questions. As one might expect from the "shell" part of PowerShell, you don't have to do special anything to start a process...
  • Windows PowerShell Blog

    Windows PowerShell 1.0 for Windows Vista

    • 65 Comments
    As Jeffery promised to you folks, today we have offically released Windows PowerShell 1.0 for Microsoft Windows Vista . Thanks to everyone for patiently waiting for this release. To download Windows PowerShell 1.0 for Windows Vista, please visit the...
  • Windows PowerShell Blog

    Array Literals In PowerShell

    • 13 Comments
    The first thing to understand is that there are no array literals in PowerShell J Arrays are built using operators or casts. The way to build an array in PowerShell is to use the comma operator as shown in the following examples:   $a = , 1      ...
  • Windows PowerShell Blog

    PowerShell Cheat Sheet

    • 42 Comments
    Ben Pearce was gracious enough to put together a good looking PowerShell Cheat Sheet which I've included as an attachment to this blog post. By definition, a cheat sheet is incomplete so this contains the things that Ben has found to be the most import...
  • Windows PowerShell Blog

    Behind PowerShell Installer (for Windows XP / Windows Server 2003):

    • 28 Comments
    The information here relates to Windows PowerShell 1.0 installer on downlevel platforms (XP SP2, W2K3 SP1 and above). The job of installers is to create an environment on a user’s machine, so that the underlying software works seamlessly on the machine...
  • Windows PowerShell Blog

    PowerShell Cheat Sheet Redux - the PDF version

    • 9 Comments
    Attached is a PDF version of Ben Pearce's PowerShell Cheat Sheet. In the past I've encouraged everyone to speak up and complain if we were messing up or not giving you what you needed. I'm pleased to see that you have taken this to heart (seriously...
  • Windows PowerShell Blog

    How to create enum in PowerShell?

    • 8 Comments
    [Updated to comply with the naming guidelines (create=>new)] Dynamic assembly emitting techniques can be used to create new classes or data types in PowerShell. Trick is that right permission needs to be set so that data types created in dynamic...
  • Windows PowerShell Blog

    Virtual Machine Manager’s PowerShell Support

    • 17 Comments
    One of the cornerstone features of System Center Virtual Machine Manager (SCVMM) is PowerShell. They have built their entire GUI layered on top of PowerShell in the same way that Exchange 2007 did. A little while ago, I talked to Rakesh Malhotra (the...
  • Windows PowerShell Blog

    Controlling PowerShell Function (Re)Definition

    • 8 Comments
    A question came up in the PowerShell news group recently where someone was asking how they could prevent functions from being redefined.   There are a couple of approaches you can use. First you can make functions read-only or constant. This is pretty...
  • Windows PowerShell Blog

    NetCmdlets Beta 2 is now Available.

    • 10 Comments
    nsoftware has released Beta 2 of NetCmdlet, a PowerShell snapin which provides Cmdlets for a wide range of protocols. The following is from their Release Notes: New In Beta 2 The current release is packed with new features, new functionality...
  • Windows PowerShell Blog

    Sorting out -GroupBy

    • 5 Comments
    Did you realize that Format-Table had a parameter -GroupBy? This tells Format-Table to generate a series of tables instead of a single table. The best way to get this in focus is to show an example. For the purposes of this blog entry, I'm going...
  • Windows PowerShell Blog

    IPCONFIG/All

    • 13 Comments
    While using CMD.exe, I got into a number of bad habits. One of those is the habit of eliminating whitespace for various commands. The problem is that that causes problems with PowerShell. More precisely stated – it doesn't work. Here is what you get:...
  • Windows PowerShell Blog

    Working With WMI Events

    • 6 Comments
    PowerShell V1 does not provide native support for WMI events. That doesn't mean that you can't use WMI events with PowerShell, it just means that you need to leverage the .NET classes to do so. This falls into the category of "to ship is to choose". Here...
  • Windows PowerShell Blog

    The Admin Development Model and Send-Snippet

    • 4 Comments
    One of the things that motivated us to develop PowerShell was the belief that we (Microsoft) had been doing a poor job supporting the Admin Development Model. All the effort seemed to have gone into treating Admins as GUI-only users or as though they...
  • Windows PowerShell Blog

    Difficulties Reading Our Blog

    • 1 Comments
    Kjartan posted the comment: I really like reading your blog and have done so for a long time now, but since I mostly read blogs with the RSS-reader in IE7 the styling of the code samples makes the posts harder to read, for some reason IE7 (at least...
  • Windows PowerShell Blog

    Cliff Notes of ConvertTo-Html & Other Language Blogs

    • 5 Comments
    I just saw a PowerShell blog entry on spaces ( http://hung-yuwu.spaces.live.com/Blog/cns!744FB258BF8C8020!1291.entry ) but it was in a language I don't read (I think it was Japanese)*. I thought I would check it out for yucks and was delighted to realizes...
  • Windows PowerShell Blog

    PowerShell Benefits Over COM Scripting

    • 7 Comments
    On an internal email thread, someone asked Vivek Sharma why they should implement PowerShell. They knew that PowerShell provided scripting but they had a COM interface which already gave them scripting so the question was – what, if any, were the additional...
  • Windows PowerShell Blog

    Two plus two equals "Monday" ?

    • 10 Comments
    In PowerShell, two plus two does not always equal four. Why? Because there are twos and there are twos. Let me explain. PowerShell does a ton of work on your behalf so you can think about what you want to do and not how to do it. Think about the...
  • Windows PowerShell Blog

    Executive Demo

    • 3 Comments
    I was in an executive review today where a team was demonstrating their technology (don't ask for details, I won't provide any :-) ). At some point they brought up this beautiful graphic showing the geographic distribution of resources and then the graph...
  • Windows PowerShell Blog

    PowerShell Cheat Sheet – Now in XPS

    • 9 Comments
    I originally published Ben Pearce's PowerShell Cheat sheet in Word 2007 format . Given that I posted it a week before the Office 2007 launch, it turned out that not many people could read that so I posted it in PDF format as well. It now turns out...
  • Windows PowerShell Blog

    Custom Alias Listing

    • 8 Comments
    When you run Get-Alias, it shows you all the aliases currently available. You might want to know which aliases were Custom aliases. That is to say, which aliases did not come built in with PowerShell. So what does it take to answer this question? We...
  • Windows PowerShell Blog

    Blog Your Initial PowerShell Experiences

    • 16 Comments
    Michael Fisher has just started using PowerShell and is blogging his impressions. You can see them at http://fastdad.wordpress.com/2007/01/05/windows-powershell-10/ . 10,000 thanks Michael! I can't tell you how valuable we find it when people do this...
  • Windows PowerShell Blog

    Set-Alias-Strict

    • 3 Comments
    I picked up Jerry Lee Ford's book Microsoft Windows PowerShell Programming for the absolute beginner . In the section on aliases, he warns users that Set-Alias does not verify the validity of the alias assignment. That is a good point. Here is a function...
  • Windows PowerShell Blog

    Windows PowerShell for Testers

    • 1 Comments
    The PowerShell team is very much into unit testing so, when I ran into this blog by Adam Geras today, I found it very interesting. All its entries are on using PowerShell for testing. I especially liked this entry on using PowerShell and Excel for data...
  • Windows PowerShell Blog

    Yet Another Freakishly PowerFul PowerShell One-liner

    • 0 Comments
    MOW has done it again. Check out http://thepowershellguy.com/blogs/posh/archive/2007/01/06/it-is-to-me.aspx for another one of MOW's freakishly powerful PowerShell one-liners. It is so powerful and pithy that makes my head spin. Enjoy! Jeffrey...
Page 1 of 2 (34 items) 12