<?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>WPF &amp;amp; PowerShell – Part 1 ( Hello World &amp;amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx</link><description>Welcome to the Week of WPF. During the next 7 days, I’ll help show you how you can use WPF and PowerShell together. PowerShell could always script almost everything in .NET, but, prior to the recent CTP2 you could not script Windows Presentation Foundation</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8531625</link><pubDate>Thu, 22 May 2008 14:21:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8531625</guid><dc:creator>Andrew Macaroon</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;interesting post, it's good to see PowerShell expanding in features and capabilities. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;It's also a good example of why I find PowerShell pretty annoying. &amp;nbsp;You've given three completely different ways of doing something, two of which aren't in the least bit intuitive and the easiest of them doesn't work. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I paste the example above into gPowerShell and hit F5 it fails, with the error &amp;quot;the calling thread must be STA, because many UI components require this&amp;quot;. &amp;nbsp;No doubt I've omitted some 'obvious' step such as manually setting my default gPowerShell Thursday execution policy to be green.&lt;/p&gt;
&lt;p&gt;I'm not even going to bother with the other two methods as no doubt some other mysterious setting needs to be changed from it's default for these to work properly.&lt;/p&gt;
&lt;p&gt;This is just a general example of why I find PowerShell absolutely exasperating. &amp;nbsp;There seem to be many, many ways of doing the same task, most of which have some undocumented 'miracle happens here' step completely unrelated to the task at hand. &amp;nbsp;(&amp;quot;You want to display a window? &amp;nbsp;Make sure you change the environment threading model first!&amp;quot; WTF??) How are we supposed to establish best practice and create re-usable code with such a profusion of approaches and convoluted mechanisms of making them run?&lt;/p&gt;
&lt;p&gt;Another bug-bear is ADSI, which I spend quite a bit of my time (normally) coding with VBScript. &amp;nbsp;I've tried to convert to PowerShell but good grief it's an irritating experience. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yesterday, for example, I spent ages wrestling with a bit of pipeline code to show a table of people who had non-default mailbox size limits. &amp;nbsp;Doing the search went fine, and using (an entirely non-obvious) bit of code from the internet I got it into a table. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I then wanted to show the output in MB instead so did a ' / 1MB'; did it work? &amp;nbsp;&amp;quot;no division operator for property result set&amp;quot;. &amp;nbsp;So, convert it a string then do it (as there's no toInt() function I take a guess it might implicitly convert a string, like it would in VBScript). &amp;nbsp;Still doesn't work, &amp;quot;no division operator for string&amp;quot;. &amp;nbsp;Cast it to an int, still doesn't work, it tries to cast the propertyresult to an int before running the .toString(), not after, &amp;nbsp;and fails &amp;quot;can't convert propertyresult to int&amp;quot;. &amp;nbsp;Try putting brackets round the blah.ToString(), to force it to run first. &amp;nbsp;Fails. &amp;nbsp;Give up. &amp;nbsp;Resort to copying it out from the screen and pasting it into Excel and converting it there. &amp;nbsp;Rubbish. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rant over, and apologies for straying way off topic here (and directing this rant at you). I do appreciate all the effort the PowerShell guys are making to evangelise and give examples of PowerShell at work. &amp;nbsp;I'm just finding it too hard to translate the stuff I do into the PowerShell way; the balance between &amp;quot;effort required to make it work&amp;quot; versus &amp;quot;benefits of migrating from VBScript&amp;quot; to my mind isn't tipped in the right direction.&lt;/p&gt;</description></item><item><title>Dew Drop - May 22, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8531838</link><pubDate>Thu, 22 May 2008 17:27:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8531838</guid><dc:creator>Dew Drop - May 22, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.alvinashcraft.com/2008/05/22/dew-drop-may-22-2008/"&gt;http://www.alvinashcraft.com/2008/05/22/dew-drop-may-22-2008/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8531880</link><pubDate>Thu, 22 May 2008 18:06:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8531880</guid><dc:creator>Pepper Pots</dc:creator><description>&lt;p&gt;Aren't these precisely the low-level details that are supposed to be encapsulated within cmdlets? &amp;nbsp;This isn't that much easier than just doing it in C#. &amp;nbsp;I agree that it's cool to be able to do it, and I liked the article and will certainly read the rest in the series, but I doubt any of this will help to spread adoption of PowerShell among those new to it, and might even turn some of them off. &amp;nbsp;I wish Microsoft would spend more time fixing known bugs than packing in new features that will be very rarely used. &amp;nbsp;How about allowing PowerShell scripts to be directly pushed out through Group Policy without a VBScript wrapper? &amp;nbsp;Or adding Active Directory cmdlets that work? &amp;nbsp;Or supporting long file paths? &amp;nbsp;Or making the SQL cmdlets better? &amp;nbsp;Or adding support for VBScript's GetObject() method? &amp;nbsp;Or getting PowerShell to work on Server Core? &amp;nbsp;Or making powershell.exe launch as quickly as cmd.exe?&lt;/p&gt;</description></item><item><title>@Andrew Macaroon</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8532405</link><pubDate>Thu, 22 May 2008 19:52:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8532405</guid><dc:creator>Marco Shaw</dc:creator><description>&lt;p&gt;Andrew,&lt;/p&gt;
&lt;p&gt;Please detail your problems, then we can help you, and maybe help others who come along with the same issue.&lt;/p&gt;
&lt;p&gt;As an MVP, we tend to not always be in touch with the troubles newcomers can face, as things have changed even as of 12 months ago.&lt;/p&gt;
&lt;p&gt;As for the STA/gPowerShell problem... &amp;nbsp;You are running v2 CTP2 right? &amp;nbsp;v2 CTP1's gPowerShell doesn't support STA mode.&lt;/p&gt;</description></item><item><title>@ Anderw Macaroon (part 2)</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8532460</link><pubDate>Thu, 22 May 2008 20:01:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8532460</guid><dc:creator>Marco Shaw</dc:creator><description>&lt;p&gt;Andrew,&lt;/p&gt;
&lt;p&gt;As for the &amp;quot;having multiple ways to do the same thing&amp;quot;...&lt;/p&gt;
&lt;p&gt;All the methods are quite different and serve their own purpose.&lt;/p&gt;
&lt;p&gt;For a typicaly admin, the command-line method would likely be choice #1. &amp;nbsp;#2 can be used to actually test/develop the script by an admin, before ones copies it into a script to be run by powershell.exe.&lt;/p&gt;
&lt;p&gt;Option #3 is more geared for developers who could be using PowerShell *inside* their applications.&lt;/p&gt;</description></item><item><title>More PoSHy WPF from PowerShell coverage</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8532535</link><pubDate>Thu, 22 May 2008 20:12:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8532535</guid><dc:creator>The PowerShell Guy</dc:creator><description>&lt;p&gt;Now also James Brundage from the PowerShell team started a series on WPF from PowerShell, Starting with&lt;/p&gt;
</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8533219</link><pubDate>Thu, 22 May 2008 21:53:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8533219</guid><dc:creator>Richard Siddaway</dc:creator><description>&lt;P&gt;I like this - look forward to the other articles.&lt;/P&gt;
&lt;P&gt;Shouldn't the New-Runspace (and other runspace) cmdlets be expanded to cover the use of a runspace in your third example&lt;/P&gt;</description></item><item><title>Windows Presentation Foundation &amp; PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8534316</link><pubDate>Fri, 23 May 2008 00:27:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8534316</guid><dc:creator>The Medical Quack .... by Barbara Duck</dc:creator><description>&lt;p&gt;Hard Hat Area: Programmers.... Server 2008 tidbit.... PowerShell...create some real nice user interfaces&lt;/p&gt;
</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8534796</link><pubDate>Fri, 23 May 2008 01:30:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8534796</guid><dc:creator>caywen</dc:creator><description>&lt;p&gt;Ugh, I could make a peanut butter and squid sandwich, but that doesn't mean you should.&lt;/p&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8538121</link><pubDate>Fri, 23 May 2008 12:28:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8538121</guid><dc:creator>Pablo</dc:creator><description>&lt;p&gt;Interesting post but we have a simple question... how can we do to run a powershell script that shows for example a form with some controls but without the black console window in the background? how can we hide the black console window? Is it possible?&lt;/p&gt;</description></item><item><title>@ Richard Siddaway</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8539253</link><pubDate>Fri, 23 May 2008 16:25:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8539253</guid><dc:creator>Marco Shaw</dc:creator><description>&lt;p&gt;Richard,&lt;/p&gt;
&lt;p&gt;new-runspace/start-psjob only support the MTA threading model/state.&lt;/p&gt;
&lt;p&gt;So, one can't use these and have WPF behave correctly in all circumstances.&lt;/p&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8539487</link><pubDate>Fri, 23 May 2008 17:25:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8539487</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;This is only meant to be MILDLY snarky.&lt;/p&gt;
&lt;p&gt;Thanks, just what I need, seven days of examples of how to use BETA code. &amp;nbsp;I live in a production world. &amp;nbsp;When will the new version ship?&lt;/p&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8539876</link><pubDate>Fri, 23 May 2008 18:42:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8539876</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;&amp;gt; This is only meant to be MILDLY snarky.&lt;/p&gt;
&lt;p&gt;&amp;quot;Snarky&amp;quot; - what a GREAT word. &amp;nbsp;I just love that word.&lt;/p&gt;
&lt;p&gt;&amp;gt; Thanks, just what I need, seven days of examples of how to use BETA code. &amp;nbsp;I live in a production world. &amp;nbsp;When will the new version ship?&lt;/p&gt;
&lt;p&gt;It's worse than that my friend. &amp;nbsp;This is not BETA code, its CTP code. &amp;nbsp;That's a LONG way away from Beta. &amp;nbsp;V2 is a huge (compatible) release with lots of new features and we need to promulgate those features to our early adopters so they can kick the tires and tell us if we got it right, almost right, or our heads are in the wrong place of our anatomy.&lt;/p&gt;
&lt;p&gt;YOU benefit from this because at some point we'll ship these features and the feedback from our early adopters hopefully acts as a proxy for your needs and you get what you want without having to take the production code, file a bunch of bugs/feature requests and wait a couple of years to get them addressed. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Of course if these early adopters don't reflect your needs, you're screwed. &amp;nbsp;You might want to think about that when deciding whether to blow of the CTP or not. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This blog is going to have a content for both existing and new stuff but is probably going to lean towards the newer stuff because we want people to use it and give us feedback. &amp;nbsp;That might mean that our signal-to-noise ratio is wrong for you until we ship V2. &amp;nbsp;That's fine - no harm/no foul - we'll enjoy your company when you join us again.&lt;/p&gt;
&lt;p&gt;So - when will the new version ship? &amp;nbsp;Here is the deal: &amp;nbsp;We were only given permission to have a CTP if we promised never to answer that question. &amp;nbsp;That said, here is what I can say. &amp;nbsp;We are coding new features for a couple more weeks and then it has typically taken us a year plus or minus a quarter to bake the release to the point that customers tell us it is ready to ship.&lt;/p&gt;
&lt;p&gt;Jeffrey Snover [MSFT]&lt;/p&gt;
&lt;p&gt;Windows Management Partner Architect&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell Team blog at: &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/PowerShell"&gt;http://blogs.msdn.com/PowerShell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell ScriptCenter at: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8539944</link><pubDate>Fri, 23 May 2008 18:57:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8539944</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;Jeffrey,&lt;/p&gt;
&lt;p&gt;Thanks. &amp;nbsp;I really appreciate your answer. &amp;nbsp;And I really appreciate PS. &amp;nbsp;I had been doing most of my work in Perl and I am very happy to move to this new tool. &amp;nbsp;I see PS as being a seriously big deal for me, I just can't get involved in development code right now.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;</description></item><item><title>@ Pablo</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8540571</link><pubDate>Fri, 23 May 2008 21:07:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8540571</guid><dc:creator>Marco Shaw</dc:creator><description>&lt;P&gt;Pablo,&lt;/P&gt;
&lt;P&gt;You want to get rid of the PowerShell console? &amp;nbsp;Can you be more specific?&lt;/P&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8541700</link><pubDate>Sat, 24 May 2008 00:26:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8541700</guid><dc:creator>Pablo</dc:creator><description>&lt;P&gt;The questions is that I can't execute a powershell script without the black console window. For example when I run a vbs script, we only need to run the command: wscript.exe example.vbs and this command do not open a cmd console :-)&lt;/P&gt;
&lt;P&gt;Another example. Look my example.ps1 script:&lt;/P&gt;
&lt;P&gt;[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") &lt;/P&gt;
&lt;P&gt;[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") &lt;/P&gt;
&lt;P&gt;$objForm = New-Object System.Windows.Forms.Form &lt;/P&gt;
&lt;P&gt;$objForm.Text = "Example"&lt;/P&gt;
&lt;P&gt;$objForm.Size = New-Object System.Drawing.Size(100,100) &lt;/P&gt;
&lt;P&gt;$objForm.StartPosition = "CenterScreen"&lt;/P&gt;
&lt;P&gt;$objForm.Add_Shown({$objForm.Activate()})&lt;/P&gt;
&lt;P&gt;[void] $objForm.ShowDialog()&lt;/P&gt;
&lt;P&gt;when I run this script: powershell.exe .\example.ps1 the windows form appears correctly but I can´t hide the powershell console. How can I do?&lt;/P&gt;</description></item><item><title>@ Pablo</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8551692</link><pubDate>Mon, 26 May 2008 03:54:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551692</guid><dc:creator>Marco Shaw</dc:creator><description>&lt;p&gt;Pablo,&lt;/p&gt;
&lt;p&gt;Ah yes, the annoying black widow... ;-)&lt;/p&gt;
&lt;p&gt;I've tried posting URLs in the comments before and they seem to always be rejected. &amp;nbsp;I'd go to the microsoft.public.windows.powershell newsgroup and ask...&lt;/p&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8551721</link><pubDate>Mon, 26 May 2008 04:44:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551721</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;P&gt;I'll include this in a later post in the series, but I'll post it here for Pablo. &amp;nbsp;You can Minimize /Maximize Powershell by calling Win32 Functions through C interop:&lt;/P&gt;
&lt;P&gt;$showWindowAsync = Add-Type –memberDefintion @”&lt;/P&gt;
&lt;P&gt;[DllImport("user32.dll")]&lt;/P&gt;
&lt;P&gt;public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);&lt;/P&gt;
&lt;P&gt;“@ -name “Win32ShowWindowAsync” -namespace Win32Functions –passThru&lt;/P&gt;
&lt;P&gt;# Minimize PowerShell&lt;/P&gt;
&lt;P&gt;$showWindowAsync::ShowWindowAsync((Get-Process –id $pid).MainWindowHandle, 2) &lt;/P&gt;
&lt;P&gt;sleep 2&lt;/P&gt;
&lt;P&gt;# Then Restore it&lt;/P&gt;
&lt;P&gt;$showWindowAsync::ShowWindowAsync((Get-Process –id $pid).MainWindowHandle, 4) &lt;/P&gt;
&lt;P&gt;Hope this Helps,&lt;/P&gt;
&lt;P&gt;James Brundage[MSFT]&lt;/P&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8551924</link><pubDate>Mon, 26 May 2008 08:25:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551924</guid><dc:creator>Smith Catar</dc:creator><description>&lt;P&gt;Great! It is what I surely hoped.&lt;/P&gt;
&lt;P&gt;But I hope -Minimize and -NoWindow start options for powershell.exe, too.&lt;/P&gt;
&lt;P&gt;Are they shipping on next milestone? Or will ship? &lt;/P&gt;</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8552267</link><pubDate>Mon, 26 May 2008 14:48:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552267</guid><dc:creator>Pablo</dc:creator><description>&lt;p&gt;@PowerShellTeam &lt;/p&gt;
&lt;p&gt;Thanks. Interesting workaround :-) I'll try it. It will be very interesting for IT Administrators that we can hide the console completely (if the black window is minimized the final user can close it). Thanks again for the help.&lt;/p&gt;</description></item><item><title>Visual Studio Links #32</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8554738</link><pubDate>Tue, 27 May 2008 14:57:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8554738</guid><dc:creator>Visual Studio Hacks</dc:creator><description>&lt;p&gt;My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. JetBrains has announced the release of the ReSharper 4.0 Beta . Hilton Giesenow has created a video titled How Do I: Add A Dialog&lt;/p&gt;
</description></item><item><title>re: WPF &amp; PowerShell – Part 1 ( Hello World &amp; Welcome to the Week of WPF )</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8556374</link><pubDate>Wed, 28 May 2008 12:35:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556374</guid><dc:creator>Gianluca</dc:creator><description>&lt;p&gt;I`ve just tried your code on PS V2 CTP Graphical and I`ve received an exception:&lt;/p&gt;
&lt;p&gt;Exception calling &amp;quot;.ctor&amp;quot; with &amp;quot;0&amp;quot; argument(s): &amp;quot;The calling thread must be STA, because many UI components require this&amp;quot;&lt;/p&gt;
&lt;p&gt;So probably there is something to tune in runspace.&lt;/p&gt;
&lt;p&gt;The only change I`ve made to standard PS Runspace is &lt;/p&gt;
&lt;p&gt;Set-ExecutionPolicy RemoteSigned&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Gianluca&lt;/p&gt;</description></item><item><title>@ Gianluca</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8556785</link><pubDate>Wed, 28 May 2008 20:23:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556785</guid><dc:creator>Marco Shaw</dc:creator><description>&lt;p&gt;Gianluca,&lt;/p&gt;
&lt;p&gt;You must be running the v2 CTP2 gPowerShell. &amp;nbsp;A v2 CTP was release also, but it doesn't support STA. &amp;nbsp;I'm assuming the problem is that you're running an old CTP version.&lt;/p&gt;</description></item><item><title>@Marco</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#8558173</link><pubDate>Thu, 29 May 2008 15:57:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8558173</guid><dc:creator>Gianluca</dc:creator><description>&lt;p&gt;You are right!&lt;/p&gt;
&lt;p&gt;I`ve missed the CTP2 release announce, sorry.&lt;/p&gt;
&lt;p&gt;Just downloaded, thanks.&lt;/p&gt;</description></item><item><title>Shame on most of us out there</title><link>http://blogs.msdn.com/powershell/archive/2008/05/22/wpf-powershell-part-1-hello-world-welcome-to-the-week-of-wpf.aspx#9403661</link><pubDate>Sat, 07 Feb 2009 08:08:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9403661</guid><dc:creator>It's my life... And I live it...</dc:creator><description>&lt;p&gt;Lee and Suzanne here makes a good point. Shame on all of us for not at least acknowledging that this&lt;/p&gt;
</description></item></channel></rss>