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… Read more

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… Read more

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 =… Read more

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.) … Read more

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 ( 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" # Bottom… Read more

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… Read more

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,… Read more

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 goodstuff Laerte! When I looked at Laerte’s code, I… Read more

You Don’t Have to Be An Administrator to Run Remote PowerShell Commands

I was just read blog entry which complained about having to have administrative access to execute PowerShell commands against a remote server.  This is not the case. We are “secure by default” which means that if you want to do something that exposes a security risk to your machines, you have to make a conscious… Read more

Windows PowerShell and the Windows Management Framework

There’s been a lot of great excitement that’s accompanied the release of PowerShell V2 and Windows Remote Management (WinRM) – also known as the Windows Management Framework. We’ve also heard the occasional question on whether it’s possible to install them independently. When we’ve heard this concern, it is usually focused on security. To be clear,… Read more