<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Nivot Ink</title>
  <link rel="alternate" type="text/html" href="http://www.nivot.org/" />
  <link rel="self" href="http://www.nivot.org/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2010-07-26T18:06:14.9570305-04:00</updated>
  <author>
    <name>Oisin Grehan</name>
  </author>
  <subtitle>PowerShell, SharePoint, WCF, WWF, .NET, ASP.NET, Enterprise Computing and babble from Microsoft MVP Oisin Grehan.</subtitle>
  <id>http://www.nivot.org/</id>
  <generator uri="http://dasblog.info/" version="2.3.9074.18820">DasBlog</generator>
  <entry>
    <title>PowerShell Script Provider</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/07/26/PowerShellScriptProvider.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,0b623743-f07e-4fd4-891e-35a05c656c4a.aspx</id>
    <published>2010-07-26T17:33:21.6535812-04:00</published>
    <updated>2010-07-26T18:06:14.9570305-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.nivot.org/CategoryView,category,NET.aspx" />
    <category term="Cmdlets" label="Cmdlets" scheme="http://www.nivot.org/CategoryView,category,Cmdlets.aspx" />
    <category term="CodePlex" label="CodePlex" scheme="http://www.nivot.org/CategoryView,category,CodePlex.aspx" />
    <category term="Developer" label="Developer" scheme="http://www.nivot.org/CategoryView,category,Developer.aspx" />
    <category term="Modules" label="Modules" scheme="http://www.nivot.org/CategoryView,category,Modules.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <category term="Providers" label="Providers" scheme="http://www.nivot.org/CategoryView,category,Providers.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Write your own PowerShell provider using only script, no C# required. Module definition
is provided by a Windows PowerShell 2.0 Module, which may be pure script, binary or
a mix of both.
</p>
        <p>
Debugging is as easy as any ordinary ps1 script file:
</p>
        <p>
          <a href="http://www.nivot.org/content/binary/WindowsLiveWriter/869ac7ef36f5_F659/image_4.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" class="wlDisabledImage" title="image" border="0" alt="image" src="http://www.nivot.org/content/binary/WindowsLiveWriter/869ac7ef36f5_F659/image_thumb_1.png" width="846" height="654" />
          </a>
        </p>
        <p>
All functions in backing module reflect the same signature as those found on MSDN.
This means that you go to MSDN documentation on providers to learn about how to write
the corresponding script. 
</p>
        <h4>Current Release <a href="http://psprovider.codeplex.com/releases/view/49025">PSProvider
0.4</a></h4>
        <h4>Samples and Templates
</h4>
        <ul>
          <li>
See <a href="http://psprovider.codeplex.com/documentation?referringTitle=Home">Documentation</a></li>
        </ul>
        <h4>Roadmap
</h4>
        <h5>0.1
</h5>
        <ul>
          <li>
ContainerCmdletProvider support through "ModuleBoundProvider" provider 
</li>
          <li>
Demo provider included navigating a Hashtable 
</li>
          <li>
Can be debugged in the debugger of your choice: console, ISE, PowerGUI.</li>
        </ul>
        <h5>0.2
</h5>
        <ul>
          <li>
NavigationCmdletProvider support 
</li>
          <li>
Providers rename to ContainerScriptProvider and TreeScriptProvider 
</li>
          <li>
Container Sample &amp; Tree Template modules 
</li>
          <li>
Supports: <b>Clear-Item, Copy-Item, Get-Item, Invoke-Item, Move-Item, New-Item, Remove-Item,
Rename-Item, Set-Item</b></li>
        </ul>
        <h5>0.3
</h5>
        <ul>
          <li>
IContentCmdletProvider support 
</li>
          <li>
New Commands: <b>New-ContentReader, New-ContentWriter</b> implement IContentReader,
IContentWriter 
</li>
          <li>
Adds support for: <b>Add-Content, Clear-Content, Get-Content, Set-Content</b></li>
        </ul>
        <h5>0.4 (Current Release)
</h5>
        <ul>
          <li>
IPropertyCmdletProvider support 
</li>
          <li>
Adds support for: <b>Clear-ItemProperty, Copy-ItemProperty, Get-ItemProperty, Move-ItemProperty,
New-ItemProperty, Remove-ItemProperty, Rename-ItemProperty, Set-ItemProperty</b></li>
        </ul>
        <h5>0.5
</h5>
        <ul>
          <li>
Dynamic Parameter support</li>
        </ul>
        <h5>0.6
</h5>
        <ul>
          <li>
Security Interfaces 
</li>
          <li>
Adds support for: <b>Get-ACL, Set-ACL</b></li>
        </ul>
        <p>
          <a href="http://psprovider.codeplex.com/">http://psprovider.codeplex.com/</a>
        </p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=0b623743-f07e-4fd4-891e-35a05c656c4a" />
      </div>
    </content>
  </entry>
  <entry>
    <title>PowerShell ISE Hacking: Change default save encoding to ASCII</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/05/21/PowerShellISEHackingChangeDefaultSaveEncodingToASCII.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,a106a528-3ba3-4463-8cac-555758287c5d.aspx</id>
    <published>2010-05-21T17:58:46.5151732-04:00</published>
    <updated>2010-05-21T17:58:46.5151732-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.nivot.org/CategoryView,category,NET.aspx" />
    <category term="Eventing" label="Eventing" scheme="http://www.nivot.org/CategoryView,category,Eventing.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <category term="PowerShell ISE" label="PowerShell ISE" scheme="http://www.nivot.org/CategoryView,category,PowerShellISE.aspx" />
    <category term="Reflection" label="Reflection" scheme="http://www.nivot.org/CategoryView,category,Reflection.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you want to do this, you won’t really need much of an explanation as to why I’m
posting this. As to the rest of you, never mind; stick with your BigEndian Unicode
(hint: powershell console and other console applications prefer ASCII) :) 
</p>
        <p>
First up, create yourself a Windows ISE Profile script that will be loaded by default
when ISE starts (and/or when you open a new “Tab”)
</p>
        <pre class="brush:powershell">
# run this one-liner from within ISE through the interactive window (command pane):
if (-not (test-path $profile)) { md -force (split-path $profile); "" &gt; $profile; psedit $profile }
</pre>
        <p>
Now, put this one-liner (well, it could fit on one line) in your $profile:
</p>
        <pre class="brush:powershell">
# watch for changes to the Files collection of the current Tab
register-objectevent $psise.CurrentPowerShellTab.Files collectionchanged -action {
    # iterate ISEFile objects
    $event.sender | % {
         # set private field which holds default encoding to ASCII
         $_.gettype().getfield("encoding","nonpublic,instance").setvalue($_, [text.encoding]::ascii)
    }
}
</pre>
Every time the tabs "files" collection changes, it will set the default save encoding
to ASCII for all files in that tab. As the profile is loaded in each tab, all files
in all tabs will default to ASCII when saving. No more "save as" annoyances; just
hit save and ASCII will be used for encoding. "Save as" will still let you save as
unicode if you wish.
<p>
Have fun!
</p><img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=a106a528-3ba3-4463-8cac-555758287c5d" /></div>
    </content>
  </entry>
  <entry>
    <title>PowerShell 2.0 – PSCX Labs: Invoke-Reflector</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/05/05/PowerShell20PSCXLabsInvokeReflector.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,d23c0f43-6edf-44a0-8d04-8d768af8c122.aspx</id>
    <published>2010-05-05T17:05:16.8718731-04:00</published>
    <updated>2010-05-05T17:05:16.8718731-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.nivot.org/CategoryView,category,NET.aspx" />
    <category term="Cmdlets" label="Cmdlets" scheme="http://www.nivot.org/CategoryView,category,Cmdlets.aspx" />
    <category term="Developer" label="Developer" scheme="http://www.nivot.org/CategoryView,category,Developer.aspx" />
    <category term="Functions" label="Functions" scheme="http://www.nivot.org/CategoryView,category,Functions.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <category term="PSCX" label="PSCX" scheme="http://www.nivot.org/CategoryView,category,PSCX.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="html">&lt;p&gt;
This is a lot of fun if you spend a lot of time tinkering around with APIs in PowerShell.
This function (included in the upcoming PSCX 2.0, alias: refl) will let you open Lutz
Roeder’s &lt;a href="http://www.red-gate.com/products/reflector/" target="_blank"&gt;Reflector&lt;/a&gt; for
any Type or Cmdlet. Reflector will automatically load the correct Assembly and will
highlight the relevant Type, without you having to do diddley-squat. Examples and
help will display with -?
&lt;/p&gt;
&lt;pre class="brush:powershell"&gt;
function Invoke-Reflector {

&lt;# .synopsis quickly load Reflector, with the specified Type or Command selected.
    .DESCRIPTION
        Quickly load Reflector, with the specified Type or Command selected. The function will also
        ensure that Reflector has the Type or Command's containing Assembly loaded.
    .EXAMPLE
        # Opens System.String in Reflector. Will load its Assembly into Reflector if required.
        ps&gt;
[string] | invoke-reflector .EXAMPLE # Opens GetChildItemCommand in Reflector. Will
load its Assembly into Reflector if required. ps&gt; gcm ls | invoke-reflector .EXAMPLE
# Opens GetChildItemCommand in Reflector. Will load its Assembly into Reflector if
required. ps&gt; invoke-reflector dir .PARAMETER CommandName Accepts name of command.
Does not accept pipeline input. .PARAMETER CommandInfo Accepts output from Get-Command
(gcm). Accepts pipeline input. .PARAMETER Type Accepts a System.Type (System.RuntimeType).
Accepts pipeline input. .PARAMETER ReflectorPath Optional. Defaults to Reflector.exe's
location if it is found in your $ENV:PATH. If not found, you must specify. .INPUTS
[System.Type] [System.Management.Automation.CommandInfo] .OUTPUTS None #&gt; [cmdletbinding(defaultparametersetname="name")]
param( [parameter( parametersetname="name", position=0, mandatory=$true )] [validatenotnullorempty()]
[string]$CommandName, [parameter( parametersetname="command", position=0, valuefrompipeline=$true,
mandatory=$true )] [validatenotnull()] [management.automation.commandinfo]$CommandInfo,
[parameter( parametersetname="type", position=0, valuefrompipeline=$true, mandatory=$true
)] [validatenotnull()] [type]$Type, [parameter( position=1 )] [validatenotnullorempty()]
[string]$ReflectorPath = $((gcm reflector.exe -ea 0).definition) ) # no process block;
i only want # a single reflector instance if ($ReflectorPath -and (test-path $reflectorpath))
{ $typeName = $null $assemblyLocation = $null switch ($pscmdlet.parametersetname)
{ { "name","command" -contains $_ } { if ($CommandName) { $CommandInfo = gcm $CommandName
-ea 0 } else { $CommandName = $CommandInfo.Name } if ($CommandInfo -is [management.automation.aliasinfo])
{ # expand aliases while ($CommandInfo.CommandType -eq "Alias") { $CommandInfo = gcm
$CommandInfo.Definition } } # can only reflect cmdlets, obviously. if ($CommandInfo.CommandType
-eq "Cmdlet") { $typeName = $commandinfo.implementingtype.fullname $assemblyLocation
= $commandinfo.implementingtype.assembly.location } elseif ($CommandInfo) { write-warning
"$CommandInfo is not a Cmdlet." } else { write-warning "Cmdlet $CommandName does not
exist in current scope. Have you loaded its containing module or snap-in?" } } "type"
{ $typeName = $type.fullname $assemblyLocation = $type.assembly.location } } # end
switch if ($typeName -and $assemblyLocation) { &amp; $reflectorPath /select:$typeName
$assemblyLocation } } else { write-warning "Unable to find Reflector.exe. Please specify
full path via -ReflectorPath." } } 
&lt;/pre&gt;
&lt;p&gt;
Have fun!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=d23c0f43-6edf-44a0-8d04-8d768af8c122" /&gt;</content>
  </entry>
  <entry>
    <title>PowerShell 2.0 – Developer Essentials #1 – Initializing a Runspace with a Module</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/05/03/PowerShell20DeveloperEssentials1InitializingARunspaceWithAModule.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,dc6c6638-cb87-4f78-8715-f221bbcc53c6.aspx</id>
    <published>2010-05-03T12:54:13.0667358-04:00</published>
    <updated>2010-05-03T12:56:28.3187358-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.nivot.org/CategoryView,category,NET.aspx" />
    <category term="Cmdlets" label="Cmdlets" scheme="http://www.nivot.org/CategoryView,category,Cmdlets.aspx" />
    <category term="Developer" label="Developer" scheme="http://www.nivot.org/CategoryView,category,Developer.aspx" />
    <category term="Modules" label="Modules" scheme="http://www.nivot.org/CategoryView,category,Modules.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
These days I'm incredibly busy both in my professional and private life, so I’ve not
had a lot of time to construct the usual meaty posts I like to write. Instead I figured
I could write a series of short – very short – posts centered around the little tricks
that you would need to be an efficient developer when targeting PowerShell. Here's
the first tip: how to create a Runspace and have one or more Module(s) preloaded.
The <a href="http://msdn.microsoft.com/en-us/library/system.management.automation.runspaceinvoke.aspx" target="_blank">RunspaceInvoke</a> class
is a handy wrapper that will do most of the plumbing for you if you just want to run
scripts or commands. If you want to manually construct your own <a href="http://msdn.microsoft.com/en-us/library/system.management.automation.runspaces.pipeline.aspx" target="_blank">Pipeline</a> instances
then you must work with the <a href="http://msdn.microsoft.com/en-us/library/system.management.automation.runspaces.runspace.aspx" target="_blank">Runspace</a> class
directly.
</p>
        <pre class="brush:csharp">
    InitialSessionState initial = InitialSessionState.CreateDefault();
    initialSession.ImportPSModule(new[] { modulePathOrModuleName1, ... });
    Runspace runspace = RunspaceFactory.CreateRunspace(initial);
    runspace.Open();
    RunspaceInvoke invoker = new RunspaceInvoke(runspace);
    Collection&lt;PSObject&gt; results = invoker.Invoke("...");
</pre>
        <p>
Have fun!
</p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=dc6c6638-cb87-4f78-8715-f221bbcc53c6" />
      </div>
    </content>
  </entry>
  <entry>
    <title>SharePoint Resources &amp; Localization – What, Where and Why?</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/04/01/SharePointResourcesLocalizationWhatWhereAndWhy.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,10dd1c60-c001-4b4a-ac94-b4cacd10086a.aspx</id>
    <published>2010-04-01T12:43:37.179839-04:00</published>
    <updated>2010-04-01T12:43:37.179839-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.nivot.org/CategoryView,category,NET.aspx" />
    <category term="i18n" label="i18n" scheme="http://www.nivot.org/CategoryView,category,i18n.aspx" />
    <category term="MOSS" label="MOSS" scheme="http://www.nivot.org/CategoryView,category,MOSS.aspx" />
    <category term="SharePoint" label="SharePoint" scheme="http://www.nivot.org/CategoryView,category,SharePoint.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
This is a just a short post to remind myself (and you, frustrated googlers/bingers)
about the different ways resources are defined and accessed within SharePoint. While
some .NET applications use embedded resources or satellite assemblies, SharePoint
has a preference for raw RESX files. These resx files are dumped in one of two places:
</p>
        <p>
          <strong>12\CONFIG\RESOURCES<br /></strong>
          <br />
- application-level "global" resources<br />
- propagated at site definition instantiation<br />
- later modifications require stsadm -o copyappbincontent<br />
- they live in &lt;approot&gt;\App_GlobalAppResources 
<br />
- accessed via HttpContext.GetGlobalResourceObject / TemplateControl.GetGlobalResourceObject<br />
- <a href="http://msdn.microsoft.com/en-us/library/system.web.httpcontext.getglobalresourceobject.aspx">http://msdn.microsoft.com/en-us/library/system.web.httpcontext.getglobalresourceobject.aspx</a><br />
- declaratively accessible &lt;asp:foo runat="server" text="&lt;%$ Resources: myapp.core,
ResKeyName %&gt;" /&gt;<br />
   (where myapp.core represents myapp.core.resx)<br /><strong><br />
12\RESOURCES<br /></strong>- farm-level global resources<br />
- available to all applications 
<br />
- remain in 12\RESOURCEs, not copied anywhere<br />
- typically used programatically via SPUtility.GetLocalizedString  ( Microsoft.SharePoint.Utilities
)<br />
- <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.getlocalizedstring.aspx">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.getlocalizedstring.aspx</a></p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=10dd1c60-c001-4b4a-ac94-b4cacd10086a" />
      </div>
    </content>
  </entry>
  <entry>
    <title>PowerShell 2.0 – Partial Application of Functions and Cmdlets</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/03/11/PowerShell20PartialApplicationOfFunctionsAndCmdlets.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,d670cb31-373a-41bc-8633-c5d102fd308d.aspx</id>
    <published>2010-03-10T20:01:07.1644565-05:00</published>
    <updated>2010-03-10T20:02:12.6064565-05:00</updated>
    <category term="Closures" label="Closures" scheme="http://www.nivot.org/CategoryView,category,Closures.aspx" />
    <category term="Cmdlets" label="Cmdlets" scheme="http://www.nivot.org/CategoryView,category,Cmdlets.aspx" />
    <category term="Functional Programming" label="Functional Programming" scheme="http://www.nivot.org/CategoryView,category,FunctionalProgramming.aspx" />
    <category term="Functions" label="Functions" scheme="http://www.nivot.org/CategoryView,category,Functions.aspx" />
    <category term="Modules" label="Modules" scheme="http://www.nivot.org/CategoryView,category,Modules.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="html">&lt;p&gt;
This is unashamedly a post for developers, in particular those with an interest in
functional languages. With the advent of PowerShell 2.0, some of you may have noticed
that ScriptBlocks - which I suppose could also be called anonymous functions or lambdas
- gained a new method: &lt;a href="http://blogs.msdn.com/powershell/archive/2009/03/27/get-closure-with-getnewclosure.aspx" target="_blank"&gt;GetNewClosure&lt;/a&gt;.
Closures are one of the essential tools for functional programming., something I’ve
been trying to learn more about over the last few years. I don’t really have an opportunity
to use it in work other than the hybrid trickery available in C# 3.0, but I have been
tinkering a lot with PowerShell 2.0 to see if some of the tricks of the functional
trade could be implemented. It’s just a shell language, but there are some nice features
in there that enable a wide variety of funky stuff.
&lt;/p&gt;
&lt;h3&gt;Partial Application
&lt;/h3&gt;
&lt;p&gt;
In a nutshell, partial application of a function is when you pass in only some of
the parameters and get a function back that can accept the remaining parameters:
&lt;/p&gt;
&lt;pre class="brush:powershell"&gt;# define a simple function
function test {
    param($a, $b, $c);
    "a: $a; b: $b; c:$c"
}

# partially apply with -c parameter
$f = merge-parameter (gcm test) -c 5

# partially apply with -c and -a then execute with -b (papp is an alias)
&amp;amp; (papp (papp (gcm test) -c 3) -a 2) -b 7

# partially apply the get-command cmdlet with -commandtype
# and assign the result to a new function
si function:get-function (papp (gcm get-command) -commandtype function)
&lt;/pre&gt;
&lt;p&gt;
This is by no means a complete implementation of a partial application framework for
powershell. The merge-parameter function (aliased to papp) currently only works with
the default parameterset and does not mirror any of the parameteric attributes in
the applied function or cmdlet. I'm not saying it couldn't do that, but this is purely
a proof of concept. The module is listed below and is also available from PoshCode
at &lt;a href="http://poshcode.org/1687" target="_blank"&gt;http://poshcode.org/1687&lt;/a&gt; 
&lt;/p&gt;
&lt;pre class="brush:powershell"&gt;# save as functional.psm1 and drop into your module path
Set-StrictMode -Version 2

$commonParameters = @("Verbose",
                      "Debug",
                      "ErrorAction",
                      "WarningAction",
                      "ErrorVariable",
                      "WarningVariable",
                      "OutVariable",
                      "OutBuffer")

&amp;lt;#
.SYNOPSIS
    Support function for partially-applied cmdlets and functions.
#&amp;gt;
function Get-ParameterDictionary {
    [outputtype([Management.Automation.RuntimeDefinedParameterDictionary])]
    [cmdletbinding()]
    param(
        [validatenotnull()]
        [management.automation.commandinfo]$CommandInfo,
        [validatenotnull()]
        [management.automation.pscmdlet]$PSCmdletContext = $PSCmdlet
    )
    
    # dictionary to hold dynamic parameters
    $rdpd = new-object Management.Automation.RuntimeDefinedParameterDictionary

    try {
        # grab parameters from function
        if ($CommandInfo.parametersets.count &amp;gt; 1) {
            $parameters = $CommandInfo.ParameterSets[[string]$CommandInfo.DefaultParameterSet].parameters
        } else {
            $parameters = $CommandInfo.parameters.getenumerator() | % {$CommandInfo.parameters[$_.key]}
        }        
                
        $parameters | % {
            
            write-verbose "testing $($_.name)"
                                    
            # skip common parameters        
            if ($commonParameters -like $_.Name) {                                  
                
                write-verbose "skipping common parameter $($_.name)"
                
            } else {
                
                $rdp = new-object management.automation.runtimedefinedparameter
                $rdp.Name = $_.Name
                $rdp.ParameterType = $_.ParameterType
                
                # tag new parameters to match this function's parameterset
                $pa = new-object system.management.automation.parameterattribute
                $pa.ParameterSetName = $PSCmdletContext.ParameterSetName
                $rdp.Attributes.Add($pa)
                
                $rdpd.add($_.Name, $rdp)
            }
            
        }
    } catch {
    
        Write-Warning "Error getting parameter dictionary: $_"
    }
    
    # return
    $rdpd
}

&amp;lt;#
.SYNOPSIS
    Function that accepts a FunctionInfo or CmdletInfo reference and one or more parameters
    and returns a FunctionInfo bound to those parameter(s) and their value(s.)
.DESCRIPTION
    Function that accepts a FunctionInfo or CmdletInfo reference and one or more parameters
    and returns a FunctionInfo bound to those parameter(s) and their value(s.)
    
    Any parameters "merged" into the function are removed from the available parameters for
    future invocations. Multiple chained merge-parameter calls are permitted.
.EXAMPLE

    First, we define a simple function:
    
    function test {
        param($a, $b, $c, $d);
        "a: $a; b: $b; c:$c; d:$d"
    }
    
    Now we merge -b parameter into functioninfo with the static value of 5, returning a new
    functioninfo:
    
    ps&amp;gt; $x = merge-parameter (gcm test) -b 5
    
    We execute the new functioninfo with the &amp;amp; (call) operator, passing in the remaining 
    arguments:
    
    ps&amp;gt; &amp;amp; $x -a 2 -c 4 -d 9
    a: 2; b: 5; c: 4; d: 9
    
    Now we merge two new parameters in, -c with the value 3 and -d with 5:
    
    ps&amp;gt; $y = merge-parameter $x -c 3 -d 5
    
    Again we call $y with the remaining named parameter -a:
    
    ps&amp;gt; &amp;amp; $y -a 2
    a: 2; b: 5; c: 3; d: 5
.EXAMPLE

    Cmdlets can also be subject to partial application. In this case we create a new
    function with the returned functioninfo:
    
    ps&amp;gt; si function:get-function (merge-parameter (gcm get-command) -commandtype function)
    ps&amp;gt; get-function
    
&lt;lists  ?function? commandtype of commands all&gt;
.PARAMETER _CommandInfo The FunctionInfo or CmdletInfo into which to merge (apply)
parameter(s.) The parameter is named with a leading underscore character to prevent
parameter collisions when exposing the targetted command's parameters and dynamic
parameters. .INPUTS FunctionInfo or CmdletInfo .OUTPUTS FunctionInfo #&amp;gt; function
Merge-Parameter { [OutputType([Management.Automation.FunctionInfo])] [CmdletBinding()]
param( [parameter(position=0, mandatory=$true)] [validatenotnull()] [validatescript({
($_ -is [management.automation.functioninfo]) -or ` ($_ -is [management.automation.cmdletinfo])
})] [management.automation.commandinfo]$_Command ) dynamicparam { # strict mode compatible
check for parameter if ((test-path variable:_command)) { # attach input functioninfo's
parameters to self Get-ParameterDictionary $_Command $PSCmdlet } } begin { write-verbose
"merge-parameter: begin" # copy our bound parameters, except common ones $mergedParameters
= new-object 'collections.generic.dictionary[string,object]' $PSBoundParameters #
remove our parameters, leaving only target function/CommandInfo's args to curry in
$mergedParameters.remove("_Command") &amp;gt; $null # remove common parameters $commonParameters
| % { if ($mergedParameters.ContainsKey($_)) { $mergedParameters.Remove($_) &amp;gt; $null
} } } process { write-verbose "merge-parameter: process" # temporary function name
$temp = [guid]::NewGuid() $target = $_Command # splat our fixed named parameter(s)
and then splat remaining args $partial = { [cmdletbinding()] param() # begin dynamicparam
dynamicparam { $targetRdpd = Get-ParameterDictionary $target $PSCmdlet # remove fixed
parameters $mergedParameters.keys | % { $targetRdpd.remove($_) &amp;gt; $null } $targetRdpd
} begin { write-verbose "i have $($mergedParameters.count) fixed parameter(s)." write-verbose
"i have $($targetrdpd.count) remaining parameter(s)" } # end dynamicparam process
{ $boundParameters = $PSCmdlet.MyInvocation.BoundParameters # remove common parameters
(verbose, whatif etc) $commonParameters | % { if ($boundParameters.ContainsKey($_))
{ $boundParameters.Remove($_) &amp;gt; $null } } # invoke command with fixed parameters
and passed parameters (all named) . $target @mergedParameters @boundParameters if
($args) { write-warning "received $($args.count) arg(s) not part of function." } }
} # emit function/CommandInfo new-item -Path function:$temp -Value $partial.GetNewClosure()
} end { # cleanup rm function:$temp } } new-alias papp Merge-Parameter -force Export-ModuleMember
-Alias papp -Function Merge-Parameter, Get-ParameterDictionary 
&lt;/pre&gt;
&lt;p&gt;
Have fun[ctional]!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=d670cb31-373a-41bc-8633-c5d102fd308d" /&gt;</content>
  </entry>
  <entry>
    <title>PowerShell – The Patchwork of Paths, PSPaths and ProviderPaths</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/03/05/PowerShellThePatchworkOfPathsPSPathsAndProviderPaths.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,c7d2809a-49cc-492c-88dc-1af937dd360a.aspx</id>
    <published>2010-03-05T01:02:31.4640008-05:00</published>
    <updated>2010-03-05T01:02:31.4640008-05:00</updated>
    <category term="Cmdlets" label="Cmdlets" scheme="http://www.nivot.org/CategoryView,category,Cmdlets.aspx" />
    <category term="Functions" label="Functions" scheme="http://www.nivot.org/CategoryView,category,Functions.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <category term="PSPath" label="PSPath" scheme="http://www.nivot.org/CategoryView,category,PSPath.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Paths in PowerShell are tough to understand [at first.] PowerShell Paths - or PSPaths,
not to be confused with Win32 paths - in their absolute forms, come in two distinct
flavours:
</p>
        <ul>
          <li>
Provider-qualified: FileSystem::<strong>c:\temp\foo.txt</strong></li>
          <li>
Drive-qualified: c:\temp\foo.txt</li>
        </ul>
        <p>
It's very easy to get confused over provider-internal (The <a href="http://msdn.microsoft.com/en-us/library/system.management.automation.pathinfo.providerpath(VS.85).aspx" target="_blank">ProviderPath</a> property
of a resolved <a href="http://msdn.microsoft.com/en-us/library/system.management.automation.pathinfo(VS.85).aspx" target="_blank">PathInfo</a> –
and the bold portion of the provider-qualified path above) and drive-qualified paths
since they look the same if you look at the default FileSystem provider drives. That
is to say, the PSDrive has the same name (C) as the native backing store, the windows
filesystem (C). So, to make it easier for yourself to understand the differences,
create yourself a new PSDrive:
</p>
        <p>
ps c:\&gt; new-psdrive temp filesystem c:\temp\<br />
ps c:\&gt; cd temp:<br />
ps temp:\&gt;
</p>
        <p>
Now, let's look at this again:
</p>
        <ul>
          <li>
Provider-qualified: FileSystem::<strong>c:\temp\foo.txt</strong></li>
          <li>
Drive-qualified: temp:\foo.txt</li>
        </ul>
        <p>
A bit easier this time to see what’s different this time. The bold text to the right
of the provider name is the ProviderPath.
</p>
        <p>
So, your goals for writing a generalized provider-friendly Cmdlet (or advanced function)
that accepts paths are:
</p>
        <ul>
          <li>
Define a LiteralPath path parameter aliased to PSPath</li>
          <li>
Define a Path parameter (which will resolve wildcards / glob)</li>
          <li>
Assume you are receiving PSPaths, <strong>NOT</strong> native provider-paths</li>
        </ul>
        <p>
Point number three is especially important. Also, obviously LiteralPath and Path should
belong in mutually exclusive parameter sets. 
</p>
        <p>
          <strong>Relative Paths</strong>
        </p>
        <p>
A good question is: how do we deal with relative paths being passed to a Cmdlet. As
you should assume all paths being given to you are PSPaths,  let’s look at what
the Cmdlet below does:
</p>
        <p>
ps temp:\&gt; write-zip -literalpath foo.txt
</p>
        <p>
The command should assume foo.txt is in the current drive, so this should be resolved
immediately in the ProcessRecord or EndProcessing block like (using the scripting
API here to demo):
</p>
        <p>
$provider = $null;<br />
$drive = $null<br />
$providerPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("foo.txt",
[ref]$provider, [ref]$drive)<br /><br />
Now you everything you need to recreate the two absolute forms of PSPaths, and you
also have the native absolute ProviderPath. To create a provider-qualified PSPath
for foo.txt, use $provider.Name + “::” + $providerPath. If $drive is not null (your
current location might be provider-qualified in which case $drive will be null) then
you should use $drive.name + ":\" + $drive.CurrentLocation + "\" + "foo.txt" to get
a drive-qualified PSPath.
</p>
        <p>
Have fun!
</p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=c7d2809a-49cc-492c-88dc-1af937dd360a" />
      </div>
    </content>
  </entry>
  <entry>
    <title>PowerShell - Why are keys in Hashtables sorted randomly?</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/02/24/PowerShellWhyAreKeysInHashtablesSortedRandomly.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,2cb1ab35-ec6b-40bb-b917-db1630560e72.aspx</id>
    <published>2010-02-24T17:38:55.7021328-05:00</published>
    <updated>2010-02-24T22:19:30.122273-05:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.nivot.org/CategoryView,category,NET.aspx" />
    <category term="CTP3" label="CTP3" scheme="http://www.nivot.org/CategoryView,category,CTP3.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
PowerShell guru and Admin-extraordinare <a href="http://www.jdhitsolutions.com/" target="_blank">Jeff
Hicks</a> asked a great question that many a Windows administrator has probably asked
themselves when working with Hashtables in PowerShell: Why do the key/values come
out in a different order than put in? This is a great question and the answer lies
in computer science theory, particularly computational complexity theory. Rather than
bore you with a <a href="http://en.wikipedia.org/wiki/Big_O_notation" target="_blank"><strong>ton
of nonsense about O(1), O(n)</strong></a> and other <a href="http://en.wikipedia.org/wiki/Hash_table" target="_blank">propeller-head
dribble</a>, I figure I could explain it in terms everyone should be able to understand.
</p>
        <h4>Hashtables, Buckets and HashCodes = Rolodex, Index Cards and Surnames<a href="http://www.nivot.org/content/binary/WindowsLiveWriter/PowerShellWhyarekeysinHashtablessortedra_E213/card-index_2.jpg"><img style="border-right-width: 0px; margin: 15px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="card-index" border="0" alt="card-index" align="right" src="http://www.nivot.org/content/binary/WindowsLiveWriter/PowerShellWhyarekeysinHashtablessortedra_E213/card-index_thumb.jpg" width="130" height="88" /></a></h4>
        <p>
Yes, if the light hasn’t gone on yet, it will soon. Every .NET object includes a method
called GetHashCode. This method returns a number that represents the identity of the
object in a kind of fuzzy way. I say “fuzzy” because the hash code for a given instance
of an object can be different on different platforms (xp, vista, 2003 etc) or on different
bitness (64 vs 32 bit.) This method is used by hashtable to get the “surname” of an
object. Instead of Index Cards, a Hashtable uses “buckets” to separate groups of objects.
Any given Hashcode will naturally fall into a particular bucket as the function (result)
of a high-speed optimized algorithm, much like any given surname naturally falls under
a particular letter of the alphabet. Finally, it should be clear to you that using
index cards [Hashtable buckets] is way faster than flicking through an unsorted folder
[randomized list.]
</p>
        <p>
Just like a Rolodex, the order you add names to it doesn’t dictate the order they
are in as you flip through the cards sequentially, which is analogous to sending a
Hashtable to out-default.
</p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=2cb1ab35-ec6b-40bb-b917-db1630560e72" />
      </div>
    </content>
  </entry>
  <entry>
    <title>PowerShell 2.0 - About Dynamic Parameters</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2010/01/18/PowerShell20AboutDynamicParameters.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,a10ddb33-447c-4f5d-a9f5-aef32b8fc008.aspx</id>
    <published>2010-01-17T21:33:04.1685282-05:00</published>
    <updated>2010-01-18T12:46:01.5899976-05:00</updated>
    <category term="Cmdlets" label="Cmdlets" scheme="http://www.nivot.org/CategoryView,category,Cmdlets.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <category term="Providers" label="Providers" scheme="http://www.nivot.org/CategoryView,category,Providers.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Did you know that when you run Get-Help against a cmdlet to find out about its parameters,
you might not be getting the whole truth? Certain cmdlets, especially those that operate
on providers (FileSystem, Certificate, Registry etc) can adopt new parameters on the
fly, depending on the path they are acting on. For example, when use you Get-Content
on the file system (drive c: etc), it gets three new parameters in addition to the
static ones listed by Get-Help (but more about this later): Delimiter, Encoding and
Wait. 
</p>
        <h4>Determining Dynamic Parameters using Get-Help
</h4>
        <p>
Get-Help has a new parameter, –Path, which lets you give the help system some context
for determining dynamic parameters:
</p>
        <blockquote>
          <i>
            <p>
-Path &lt;string&gt;<br />
    Gets help that explains how the cmdlet works in the specified provider
path. Enter a Windows PowerShell provider path. 
</p>
            <p>
    This parameter gets a customized version of a cmdlet help topic
that explains how the cmdlet works in the specified Windows PowerShell provider path.
This parameter is effective only for help about a provider cmdlet and only when the
provider includes a custom version of the provider cmdlet help topic. 
</p>
            <p>
    To see the custom cmdlet help for a provider path, go to the provider
path location and enter a Get-Help command or, from any path location, use the Path
parameter of Get-Help to specify the provider path. For more information, see about_Providers.
</p>
          </i>
        </blockquote>
        <h4>Determining Dynamic Parameters using Get-Command
</h4>
        <p>
Get-Command has a new parameter, –ArgumentList, which acts similarly to unveil what
dynamic parameters might be attached to a cmdlet for a given parameterset and path/literalpath
if available on the chosen cmdlet. I’ve written a simple function that takes a cmdlet
name as an argument and will display all of the dynamic parameters available for a
cmdlet for each distinct provider:
</p>
        <pre class="brush:powershell"># this function will pass a drive name in position 0 as an unnamed argument
# most path-oriented cmdlets accept this binding
function Get-DynamicParameter {
    param(        
        [string]$command
    ) 
  
    $parameters = @{}
    get-psdrive | sort -unique provider | % {
        $parameters[$_.provider.name] = gcm $command -args "$($_.name):" | % {
            $c = $_; @($_.parameters.keys) | sort | ? {
                $c.parameters[$_].isdynamic
            }
        }
    }
    $parameters    
}</pre>
        <p>
Example use:
</p>
        <pre style="font-family: courier; font-size: 11pt">PS&gt; Get-DynamicParameter get-content

Name                           Value
----                           -----
Alias
FileSystem                     {Delimiter, Encoding, Wait}
AssemblyCache
Registry
Environment
WSMan
Certificate
FeedStore
Function
Variable
PscxSettings</pre>
        <p>
          <strong>NOTE: </strong>when you don’t pass any context parameters to get-command via
–argumentlist, it will take your current location as the context for dynamic parameters
(if any are found.) So running get-command from c:\ instead hklm:\ will give you the
additional parameters Delimiter, Encoding and Wait.
</p>
        <p>
Have fun!
</p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=a10ddb33-447c-4f5d-a9f5-aef32b8fc008" />
      </div>
    </content>
  </entry>
  <entry>
    <title>PowerShell 2.0 – Introducing the PModem File Transfer Protocol</title>
    <link rel="alternate" type="text/html" href="http://www.nivot.org/2009/11/02/PowerShell20IntroducingThePModemFileTransferProtocol.aspx" />
    <id>http://www.nivot.org/PermaLink,guid,2b297e92-f5cf-4c08-afd4-e50579878b99.aspx</id>
    <published>2009-11-01T20:57:10.9245303-05:00</published>
    <updated>2009-11-01T20:57:10.9245303-05:00</updated>
    <category term="Eventing" label="Eventing" scheme="http://www.nivot.org/CategoryView,category,Eventing.aspx" />
    <category term="Modules" label="Modules" scheme="http://www.nivot.org/CategoryView,category,Modules.aspx" />
    <category term="Monad" label="Monad" scheme="http://www.nivot.org/CategoryView,category,Monad.aspx" />
    <category term="PModem" label="PModem" scheme="http://www.nivot.org/CategoryView,category,PModem.aspx" />
    <category term="PowerShell" label="PowerShell" scheme="http://www.nivot.org/CategoryView,category,PowerShell.aspx" />
    <category term="PowerShell 2.0" label="PowerShell 2.0" scheme="http://www.nivot.org/CategoryView,category,PowerShell20.aspx" />
    <category term="Remoting" label="Remoting" scheme="http://www.nivot.org/CategoryView,category,Remoting.aspx" />
    <category term="Windows 7" label="Windows 7" scheme="http://www.nivot.org/CategoryView,category,Windows7.aspx" />
    <author>
      <name>Oisin Grehan</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
One of the things that never quite fit well with me with the remoting feature in PowerShell
2.0 is that while you can “telnet” to remote systems with Enter-PSSession and import
commands and do all sorts of cool tricks, there is no way to send or retrieve files
from the console. It seems like such a waste that you configure WinRM up with SSL
and Kerberos and get this nice encrypted channel up, but if you want to transfer files
you have to revert to file shares, remote desktop or classic ftp. 
</p>
        <p>
Back in the “good ole’ days” of BBSs and <a href="http://en.wikipedia.org/wiki/FidoNet" target="_blank">FidoNet</a>,
people used to use simple protocols like <a href="http://en.wikipedia.org/wiki/XModem" target="_blank">XModem</a> (advancing
to YModem and then ZModem) or Kermit that worked by streaming character data directly
to your terminal. It wasn’t fast or particularly efficient, but it got the job done.
I thought I’d take a crack at building something similar for PowerShell, and this
first 0.5 release is the fruits of this weekend’s tinkering. At the moment it only
can “pull” a file to the local system from a remote session, but the next release
will allow “pushing” a file from a local system to a remote session. 
</p>
        <p>
          <a href="http://www.nivot.org/content/binary/WindowsLiveWriter/Pow.0IntroducingthePModemFileTransferPro_11813/image_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.nivot.org/content/binary/WindowsLiveWriter/Pow.0IntroducingthePModemFileTransferPro_11813/image_thumb.png" width="973" height="311" />
          </a>
        </p>
        <p>
The reason I named it after XModem is because it works in a similar way: files are
not “pulled” from the remote server, but instead are “pushed.” X[YZ]Modem file transfer
was initiated by the remote end. I’ll not spoil the fun by explaining how it works,
but I think you’ll enjoy pulling it apart. It’s in a module format and is implemented
in pure script. 
</p>
        <h4>Requirements
</h4>
        <ul>
          <li>
PowerShell 2.0 installed on both client and server with remoting enabled <em>to</em> the
location of the file being transferred.</li>
        </ul>
        <blockquote>
          <p>
            <em>E.g. if you want to grab a file using Get-RemoteFile from a remote server, you
must be able to create a valid PSSession to it with the New-PSSession cmdlet. When
Send-LocalFile is implemented, you’ll need remoting enabled in the other direction
too. </em>
          </p>
        </blockquote>
        <ul>
          <li>
The PMODEM module must be findable on both the client and server via import-module
and must be the same version.</li>
        </ul>
        <p>
Here’s the Get-RemoteFile function help (via –?):
</p>
        <pre style="background-color: #eeeeee; margin: 8px; font-size: 10pt">NAME
    Get-RemoteFile

SYNOPSIS
    Retrieves a file from a remote computer via a supplied PSession.


SYNTAX
    Get-RemoteFile [-Session] &lt;pssession&gt; [-RemoteFile] &lt;string&gt; [[-LocalPath] &lt;string&gt;] [[-PacketSize] &lt;int32&gt;]
	[-PassThru] [-AsJob] [&lt;commonparameters&gt;]


DESCRIPTION
    Retrieves a remote file from a server via a supplied PSSession. All communication
    is performed out-of-band, yet inside the secure WinRM channel.

    No other ports, file shares or any other special configuration is needed. However,
    the PMODEM module must be on the remote computer and findable in its $ENV:PSModulePath;
    the protocol versions must also match on both ends. You will be warned of any
    misconfiguration(s).

    When not running asynchronously, progress records are generated.


RELATED LINKS

REMARKS
    To see the examples, type: "get-help Get-RemoteFile -examples".
    For more information, type: "get-help Get-RemoteFile -detailed".
    For technical information, type: "get-help Get-RemoteFile -full".
</pre>
        <p>
        </p>
        <p>
Things coming in later releases: wildcards/multiple file support, compression and
integration via proxy functions (copy-item/move-item/remove-item/rename-item etc).
</p>
        <h4>Download PModem
</h4>
        <p>
Grab <a href="http://www.nivot.org/content/binary/pmodem-0.5.zip" target="_blank">pmodem-0.5.zip</a> and
unzip it into a folder in your $ENV:PSModulePath on the client and server computers
you want to use PMODEM on.
</p>
        <p>
Have fun!
</p>
        <img width="0" height="0" src="http://www.nivot.org/aggbug.ashx?id=2b297e92-f5cf-4c08-afd4-e50579878b99" />
      </div>
    </content>
  </entry>
</feed>