<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>David Aiken : Powershell</title><link>http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx</link><description>Tags: Powershell</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How much do you love PowerShell?</title><link>http://blogs.msdn.com/daiken/archive/2008/01/27/how-much-do-you-love-powershell.aspx</link><pubDate>Mon, 28 Jan 2008 09:55:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7281547</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/7281547.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=7281547</wfw:commentRss><description>&lt;p&gt;Here is someone who possibly loves Windows PowerShell more than I do.&lt;/p&gt;  &lt;p&gt;Check out &lt;a href="http://ca.youtube.com/watch?v=MWWzrp3xkYY"&gt;http://ca.youtube.com/watch?v=MWWzrp3xkYY&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;THIS POSTING IS PROVIDED &amp;quot;AS IS&amp;quot; WITH NO WARRANTIES, AND CONFERS NO RIGHTS SO THERE&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7281547" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/Funny/default.aspx">Funny</category></item><item><title>Cooking with powerShell</title><link>http://blogs.msdn.com/daiken/archive/2007/11/20/cooking-with-powershell.aspx</link><pubDate>Tue, 20 Nov 2007 21:42:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6439987</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/6439987.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=6439987</wfw:commentRss><description>&lt;p&gt;Oh My!&lt;/p&gt;  &lt;p&gt;I just received a copy of Lee Holmes Windows PowerShell Cookbook. The book is 429 pages of juicy mouth-watering recipes for anything from how to write loops, to accessing remote registry access. There are then 90 pages of reference including Regular expressions and WMI.&lt;/p&gt;  &lt;p&gt;A great book. I suggest you purchase several copies (one for work and one for home) from your favorite book retailer.&lt;/p&gt;  &lt;p&gt;THIS POSTING IS PROVIDED &amp;quot;AS IS&amp;quot; WITH NO WARRANTIES, AND CONFERS NO RIGHTS&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6439987" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>Windows Powershell and Windows Mobile SDK?</title><link>http://blogs.msdn.com/daiken/archive/2007/08/29/windows-powershell-and-windows-mobile-sdk.aspx</link><pubDate>Thu, 30 Aug 2007 02:29:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4635998</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/4635998.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=4635998</wfw:commentRss><description>&lt;p&gt;Had the pleasure of demonstrating the Windows Mobile part of DinnerNow to a Windows Mobile PM. During the demo, I loaded up Visual Studio 2008, and started the emulator ready for the mobile app. It turns out you don't need to launch VS to start the emulator, in fact you can do it using the &lt;strong&gt;Microsoft.SmartDevice.Connectivity&lt;/strong&gt; namespace.  &lt;p&gt;Not being able to help myself,&amp;nbsp;I thought - aha, I can script this now with Powershell.  &lt;p&gt;[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SmartDevice.Connectivity")  &lt;p&gt;$dm = new-object Microsoft.SmartDevice.Connectivity.DatastoreManager 1033  &lt;p&gt;$plat = $dm.GetPlatforms()  &lt;p&gt;$plat  &lt;p&gt;($plat[5]).getDevices()  &lt;p&gt;$device = ($plat[5]).getDevices()[1]  &lt;p&gt;$device.Connect()&lt;/p&gt; &lt;p&gt;You'll need the Windows Mobile SDK 6 installing, but those few lines of code should get you started.  &lt;p&gt;THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4635998" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/DinnerNow/default.aspx">DinnerNow</category></item><item><title>Hosting Windows PowerShell Part 3 - The Revenge of the MMC</title><link>http://blogs.msdn.com/daiken/archive/2007/07/03/hosting-windows-powershell-part-3-the-revenge-of-the-mmc.aspx</link><pubDate>Tue, 03 Jul 2007 23:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3676041</guid><dc:creator>daiken</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3676041.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3676041</wfw:commentRss><description>&lt;P&gt;I've just posted the final screencast on hosting &lt;A href="http://channel9.msdn.com/ShowPost.aspx?PostID=321842" mce_href="http://channel9.msdn.com/ShowPost.aspx?PostID=321842"&gt;Windows PowerShell to Channel 9&lt;/A&gt;. In the final part, I show how you can build an administration GUI using MMC, which calls into PowerShell Cmdlets. In the video, I show Get-Service and Stop-Service - but they could have easily been your own Cmdlets.&lt;/P&gt;
&lt;P&gt;I'm ramping up some more episodes for &lt;A href="http://channel9.msdn.com/Shows/The_DFO_Show" mce_href="http://channel9.msdn.com/Shows/The_DFO_Show"&gt;the DFO show&lt;/A&gt;, in a bid to make it almost weekly. Good luck to me.&lt;/P&gt;
&lt;P&gt;THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3676041" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/Channel+9/default.aspx">Channel 9</category></item><item><title>More Hosting PowerShell on Channel9</title><link>http://blogs.msdn.com/daiken/archive/2007/06/26/more-hosting-powershell-on-channel9.aspx</link><pubDate>Tue, 26 Jun 2007 19:56:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3548492</guid><dc:creator>daiken</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3548492.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3548492</wfw:commentRss><description>I've just posted the 2nd of 3 screeencasts to channel 9 on hosting Windows PowerShell . This time I show you how to get at the typed base objects returned from an invoke, then how to create a custom host to allow full GUI interaction. Reminder, you can...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/26/more-hosting-powershell-on-channel9.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3548492" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/Channel+9/default.aspx">Channel 9</category></item><item><title>Hosting Windows PowerShell Sample Code</title><link>http://blogs.msdn.com/daiken/archive/2007/06/22/hosting-windows-powershell-sample-code.aspx</link><pubDate>Sat, 23 Jun 2007 00:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3468351</guid><dc:creator>daiken</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3468351.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3468351</wfw:commentRss><description>Having posted the first of three screencasts to channel 9 on Hosting Windows PowerShell, I thought i would make the code available. (attached) Enjoy THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/22/hosting-windows-powershell-sample-code.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3468351" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/daiken/attachment/3468351.ashx" length="88605" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>Building Administration User Interfaces</title><link>http://blogs.msdn.com/daiken/archive/2007/06/21/building-administration-user-interfaces.aspx</link><pubDate>Thu, 21 Jun 2007 20:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3445747</guid><dc:creator>daiken</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3445747.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3445747</wfw:commentRss><description>Do you build GUI's for your application administrators? Do you provide a consistent familiar interface? Do you provide scripting capabilities? Sometimes I get mistaken for the Windows PowerShell evangelist. Whilst that is fun, its not my whole story....(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/21/building-administration-user-interfaces.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3445747" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/MMC/default.aspx">MMC</category><category domain="http://blogs.msdn.com/daiken/archive/tags/Channel+9/default.aspx">Channel 9</category></item><item><title>Windows PowerShell and Microsoft Management Console 3.0 Quick Start Labs</title><link>http://blogs.msdn.com/daiken/archive/2007/06/20/windows-powershell-and-microsoft-management-console-3-0-quick-start-labs.aspx</link><pubDate>Thu, 21 Jun 2007 02:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3434912</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3434912.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3434912</wfw:commentRss><description>I'm pleased to announce the Hands On Labs that were used in the Windows PowerShell and MMC Confernce in April are now available for download at http://download.microsoft.com/download/9/b/0/9b0238c3-f191-42ed-9cdb-9212995cbe72/PSMMCLabs.msi The labs are...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/20/windows-powershell-and-microsoft-management-console-3-0-quick-start-labs.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3434912" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>Hanselman, Snover, Corillian, PowerShell, Channel 9</title><link>http://blogs.msdn.com/daiken/archive/2007/06/08/hanselman-snover-corillian-powershell-channel-9.aspx</link><pubDate>Sat, 09 Jun 2007 07:41:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3175533</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3175533.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3175533</wfw:commentRss><description>Jeffrey and Scott talk again about how Corillian has been infested by PowerShell, and how they use it to do some pretty amazing stuff, including a remote runspace! I love the way they can put together a fully working system from a base machine with OS,...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/08/hanselman-snover-corillian-powershell-channel-9.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3175533" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>Top 5 PowerShell Questions at TechEd</title><link>http://blogs.msdn.com/daiken/archive/2007/06/07/top-5-powershell-questions-at-teched.aspx</link><pubDate>Fri, 08 Jun 2007 08:21:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3155331</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3155331.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3155331</wfw:commentRss><description>Ben Pearce, the guy on the PowerShell booth at TechEd this week, has blogged the answers to the top 5 questions on his blog . Also check out the screencasts and interviews on channel 9 . THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/07/top-5-powershell-questions-at-teched.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3155331" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/TechEd/default.aspx">TechEd</category></item><item><title>Love for the VSMMD @ TechEd</title><link>http://blogs.msdn.com/daiken/archive/2007/06/07/love-for-the-vsmmd-teched.aspx</link><pubDate>Thu, 07 Jun 2007 20:38:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3145595</guid><dc:creator>daiken</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3145595.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3145595</wfw:commentRss><description>For me, TechEd 07 is almost over - I've finished my speaking duties, now its just networking, hanging out at the TLC and attending some sessions. (and catching up with emails). Some good news appeared in my mailbox this morning, after our session DEV...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/07/love-for-the-vsmmd-teched.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3145595" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/DinnerNow/default.aspx">DinnerNow</category><category domain="http://blogs.msdn.com/daiken/archive/tags/VSMMD/default.aspx">VSMMD</category><category domain="http://blogs.msdn.com/daiken/archive/tags/TechEd/default.aspx">TechEd</category></item><item><title>/n software. Netcmdlets and a PowerShell Sticker</title><link>http://blogs.msdn.com/daiken/archive/2007/06/06/n-software-netcmdlets-and-a-powershell-sticker.aspx</link><pubDate>Thu, 07 Jun 2007 01:26:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3126577</guid><dc:creator>daiken</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/daiken/comments/3126577.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=3126577</wfw:commentRss><description>Thanks to our friends at N Software - I now have a nice shiney PowerShell sticker on my laptop. N Software have a cool product for Powershell called NetCmdlets - which gives you cool cmdlets such as get-rss, get-http, read-zip. There is a free trial and...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/06/06/n-software-netcmdlets-and-a-powershell-sticker.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3126577" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category><category domain="http://blogs.msdn.com/daiken/archive/tags/TechEd/default.aspx">TechEd</category></item><item><title>Scripting XML Configuration Files</title><link>http://blogs.msdn.com/daiken/archive/2007/04/27/scripting-xml-configuration-files.aspx</link><pubDate>Fri, 27 Apr 2007 23:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2303243</guid><dc:creator>daiken</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/daiken/comments/2303243.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=2303243</wfw:commentRss><description>Those .NET XML Configuration files, you know the ones - web.config - app.config - thingy.exe.config - well i've never been happy with them. First, XML is not very forgiving, miss a bracket or slash and your application does terrible things. Second, when...(&lt;a href="http://blogs.msdn.com/daiken/archive/2007/04/27/scripting-xml-configuration-files.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2303243" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/daiken/attachment/2303243.ashx" length="4433" type="text/plain" /><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>Finding airports with PowerShell and Local.Live</title><link>http://blogs.msdn.com/daiken/archive/2007/04/11/finding-airports-with-powershell-and-local-live.aspx</link><pubDate>Wed, 11 Apr 2007 21:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2089881</guid><dc:creator>daiken</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/daiken/comments/2089881.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=2089881</wfw:commentRss><description>&lt;P&gt;So a few weeks back i came across this puzzle in an internal discussion list. There is a comma separated text file at &lt;A title=AirportsG7.txt href="http://www.cockpitgps.com/data/AirportsG7.txt" mce_href="http://www.cockpitgps.com/data/AirportsG7.txt"&gt;&lt;A title=AirportsGDM.txt href="http://www.cockpitgps.com/data/AirportsGDM.txt" mce_href="http://www.cockpitgps.com/data/AirportsGDM.txt"&gt;AirportsGDM.txt&lt;/A&gt;&lt;/A&gt;&amp;nbsp;containing all the airports and the codes, along with the Lang and Long Co-ordinates. The puzzle was to see how few lines of code you needed to write a program that would parse the file, find a specific airport, then display a local.live map displaying the airports location.&lt;/P&gt;
&lt;P&gt;Sounded like something that Windows PowerShell should be able to do, in say&amp;nbsp;hmm, i don't know, 1 line....&lt;/P&gt;
&lt;P&gt;So first the final script&lt;/P&gt;
&lt;DIV class=csharpcode&gt;&lt;PRE class=alt&gt;function Get-AirportMap&lt;/PRE&gt;&lt;PRE&gt;{&lt;/PRE&gt;&lt;PRE class=alt&gt;    param([&lt;SPAN class=kwrd&gt;string&lt;/SPAN&gt;]$aircode)&lt;/PRE&gt;&lt;PRE&gt;    get-content D:\dev\airports\AirportsGDM.txt | select-&lt;SPAN class=kwrd&gt;string&lt;/SPAN&gt; $aircode | &lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE&gt;&lt;SPAN class=kwrd&gt;foreach&lt;/SPAN&gt; { $a = $_.Line.substring(0,$_.Line.Length-5).replace(&lt;SPAN class=str&gt;","&lt;/SPAN&gt;,&lt;SPAN class=str&gt;"~"&lt;/SPAN&gt;) ; [System.Diagnostics.Process]::Start("&lt;SPAN class=str&gt;http://local.live.com/default.aspx?V=2&amp;amp;cp=$a&amp;amp;lvl=12"&lt;/SPAN&gt;)}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE class=alt&gt;}&lt;/PRE&gt;&lt;/DIV&gt;
&lt;STYLE type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/STYLE&gt;

&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This of course assumes you have the text file located in the d:\dev\airports folder.&lt;/P&gt;
&lt;P&gt;The command should be fairly straightforward and easy to figure out.&lt;/P&gt;
&lt;P&gt;The content of the text file&lt;/P&gt;&lt;PRE class=csharpcode&gt;get-content D:\dev\airports\AirportsGDM.txt&lt;/PRE&gt;
&lt;STYLE type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/STYLE&gt;

&lt;P&gt;is pipedinto a selection&lt;/P&gt;&lt;PRE class=csharpcode&gt;select-&lt;SPAN class=kwrd&gt;string&lt;/SPAN&gt; $aircode&lt;/PRE&gt;
&lt;STYLE type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/STYLE&gt;

&lt;P&gt;for each result we go and work out the co-ordinates&lt;/P&gt;&lt;PRE class=csharpcode&gt;$a = $_.Line.substring(0,$_.Line.Length-5).replace(&lt;SPAN class=str&gt;","&lt;/SPAN&gt;,&lt;SPAN class=str&gt;"~"&lt;/SPAN&gt;) &lt;/PRE&gt;
&lt;STYLE type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/STYLE&gt;

&lt;P&gt;Then start a new process navigating to the local.live URL&lt;/P&gt;&lt;PRE class=csharpcode&gt;[System.Diagnostics.Process]::Start("&lt;SPAN class=str&gt;http://local.live.com/default.aspx?V=2&amp;amp;cp=$a&amp;amp;lvl=12"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE class=csharpcode&gt;Simple. and the results.&lt;/PRE&gt;&lt;PRE class=csharpcode&gt;get-airportmap LAX&lt;/PRE&gt;&lt;PRE class=csharpcode&gt;&lt;A href="http://blogs.msdn.com/blogfiles/daiken/WindowsLiveWriter/FindingairportswithPowerShellandLoc.Live_A5B8/image%7B0%7D%5B4%5D.png" atomicselection="true" mce_href="http://blogs.msdn.com/blogfiles/daiken/WindowsLiveWriter/FindingairportswithPowerShellandLoc.Live_A5B8/image%7B0%7D%5B4%5D.png"&gt;&lt;/A&gt;&lt;A href="http://blogs.msdn.com/blogfiles/daiken/WindowsLiveWriter/FindingairportswithPowerShellandLoc.Live_A5B8/image%7B0%7D%5B7%5D.png" atomicselection="true" mce_href="http://blogs.msdn.com/blogfiles/daiken/WindowsLiveWriter/FindingairportswithPowerShellandLoc.Live_A5B8/image%7B0%7D%5B7%5D.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=449 src="http://blogs.msdn.com/blogfiles/daiken/WindowsLiveWriter/FindingairportswithPowerShellandLoc.Live_A5B8/image%7B0%7D_thumb%5B3%5D.png" width=684 border=0 mce_src="http://blogs.msdn.com/blogfiles/daiken/WindowsLiveWriter/FindingairportswithPowerShellandLoc.Live_A5B8/image%7B0%7D_thumb%5B3%5D.png"&gt;&lt;/A&gt; &lt;/PRE&gt;&lt;PRE class=csharpcode&gt;THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS&lt;/PRE&gt;
&lt;STYLE type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/STYLE&gt;

&lt;STYLE type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/STYLE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2089881" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item><item><title>Windows PowerShell in the Longhorn Server box</title><link>http://blogs.msdn.com/daiken/archive/2007/03/29/windows-powershell-in-the-longhorn-server-box.aspx</link><pubDate>Fri, 30 Mar 2007 08:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1992578</guid><dc:creator>daiken</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/daiken/comments/1992578.aspx</comments><wfw:commentRss>http://blogs.msdn.com/daiken/commentrss.aspx?PostID=1992578</wfw:commentRss><description>&lt;P&gt;I know, i know. It was announced 2 days ago at MMS &lt;A href="http://blogs.msdn.com/powershell/archive/2007/03/28/announced-powershell-to-ship-in-windows-server-longhorn.aspx" mce_href="http://blogs.msdn.com/powershell/archive/2007/03/28/announced-powershell-to-ship-in-windows-server-longhorn.aspx"&gt;Windows PowerShell will be in the box on Longhorn Server&lt;/A&gt;. (I&amp;nbsp;sometimes do things that have nothing to do with Powershell).&lt;/P&gt;
&lt;P&gt;Rejoice and be merry.&lt;/P&gt;
&lt;P&gt;THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1992578" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/daiken/archive/tags/General/default.aspx">General</category><category domain="http://blogs.msdn.com/daiken/archive/tags/Powershell/default.aspx">Powershell</category></item></channel></rss>