December 2009 - Windows PowerShell Team Blog

  • Saving remote session to your local disk

    Read the previous post on implict remoting to learn how the Import-PSSession cmdlet makes it easier to work with remote commands by presenting them as if they were local commands. This user experience saves you the trouble of typing long Invoke-Command incantations to pass arguments to remote commands or to download remote help content. The next great thing would be to jump straight into the implicit...
  • Bringing remote commands to your local session

    How can you manage multiple technologies installed on separate machines that expose their management surface through cmdlets?  One approach would be to open remote desktop connection to each of those machines, another approach would be to send commands using Invoke-Command and PowerShell Remoting.  But remote desktop is not a feasible solution for automation and invoking remote commands using...
  • How to pass arguments for remote commands

    When invoking remote commands, one often wants to use local values as arguments to the remote command. This post explains how to do that. Hardcoded values Let's start with a simple example. Below you can see how Get-Process is invoked in a remote session when the Id parameter is set to 0: PS> $s = New-PSSession -Computer localhost PS> Invoke-Command -Session $s -Script { Get-Process -Id 0...
  • PowerShell Help Reader – WOW!

    Alexey Martseniuk posted a blog entry in the PowerShell NewsGroup announcing a new version (V1.2) of the PowerShell Help Reader.  My first reaction is WOW! Start your wow experience by going to http://PowershellTools.Com and checking out the Silverlight-based intro screen.  (You’ll need Silverlight of course but you should have it anyway – it is awesome.)  This is the harbinger of things...
  • A Christmas Tree in WPK

    Merry Christmas.  To celebrate the holiday, here’s a quick Christmas tree written in WPK (the WPF PowerShell Kit).  You can get WPK as part of the PowerShellPack ( http://code.msdn.microsoft.com/PowerShellPack ). Here’s a screenshot: and Here’s the script: Import-Module WPK New-Polygon -Points { # Start from the top "87.5,0" # Left Side of Tree "0,150" "75,140"...
  • PowerShellPack Reaches 10,000 Downloads in 3 Months

    Just before the release of Windows 7, the Windows 7 Resource Kit PowerShell Pack was released.  Today, it hit 10,000 downloads. It contains 10 useful modules that help you do more with Windows PowerShell.  It has modules that can help every IT admin ( like the TaskScheduler module), and modules that can help any .NET developer (like PSCodeGen).  There’s also a nifty module, IsePack,...
  • Windows PowerShell 2.0 SDK

    Windows PowerShell 2.0 Software Development Kit (SDK) is now available for download . This SDK contains sample code and reference assemblies that allow you to build applications based on Windows PowerShell. The samples demonstrate how to use the Windows PowerShell 2.0 APIs. You will also find sample code that shows how to use the new PowerShell class, how to write cmdlets that supports eventing, transactions...
  • New-Object PSObject –Property [HashTable]

    Let me start of by suggesting you take a few minutes and read Laerte Junior’s excellent blog entry Exceptional PowerShell DBA Pt1 Orphaned Users . Laerte does a great job describing the scenario, the approach he took to solving it and then he included the scripts! Really good stuff Laerte! When I looked at Laerte’s code, I recognized one of my least favorite PowerShell V1isms: $Object = New-Object...
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.