<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>youdidwhatwithtsql.com &#187; Powershell Tools</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/tag/powershell-tools/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Sat, 24 Jul 2010 16:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PsFetch</title>
		<link>http://www.youdidwhatwithtsql.com/psfetch/580</link>
		<comments>http://www.youdidwhatwithtsql.com/psfetch/580#comments</comments>
		<pubDate>Tue, 26 Jan 2010 21:04:00 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Powershell Tools]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/psfetch/580</guid>
		<description><![CDATA[I really used to like apt-get when I used to run Linux as my home os a few years ago. Once you got the hang of it installing and managing software was easy. I&#8217;m obviously pleased to see PsFetch in development. This tool is the Windows Powershell take on apt-get which will allow you to [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/psfetch/580">PsFetch</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I really used to like <a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool" target="_blank">apt-get</a> when I used to run <a href="http://www.linux.org/" target="_blank">Linux</a> as my home os a few years ago. Once you got the hang of it installing and managing software was easy. I&#8217;m obviously pleased to see <a href="http://www.psfetch.net/" target="_blank">PsFetch</a> in development. This tool is the Windows <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Powershell</a> take on apt-get which will allow you to get your hand on cmdlets, scripts, and by the looks of it, tools from <a href="http://www.codeplex.com" target="_blank">codeplex</a>. They&#8217;re currently building up a <a href="http://www.psfetch.net/browse/" target="_blank">repository</a> with lots of cool scripts.</p>
<p>Read <a href="http://www.psfetch.net/about/" target="_blank">more about PsFetch</a> and sign-up for <a href="http://www.psfetch.net/download/" target="_blank">public beta testing</a>.</p>
<p><map name='google_ad_map_580_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/580?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_580_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=580&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fpsfetch%2F580' title="PsFetch" alt=" PsFetch" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/psfetch/580">PsFetch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/psfetch/580/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowershellPack STA Error</title>
		<link>http://www.youdidwhatwithtsql.com/powershellpack-sta-error/579</link>
		<comments>http://www.youdidwhatwithtsql.com/powershellpack-sta-error/579#comments</comments>
		<pubDate>Mon, 25 Jan 2010 20:51:29 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Powershell STA mode]]></category>
		<category><![CDATA[Powershell Tools]]></category>
		<category><![CDATA[PowerShellPack]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/powershellpack-sta-error/579</guid>
		<description><![CDATA[I&#8217;m really into Powershell so I like trying out all the available tools. Somehow I&#8217;ve missed the release of the PowershellShellPack which has ten modules offering all kinds of additional functionality including file handling, operating system information, GUI and code generation. I followed the Channel 9 video and ran into a problem on the first [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/powershellpack-sta-error/579">PowershellPack STA Error</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really into <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Powershell</a> so I like trying out all the available tools. Somehow I&#8217;ve missed the release of the <a href="http://code.msdn.microsoft.com/PowerShellPack" target="_blank">PowershellShellPack</a> which has ten modules offering all kinds of additional functionality including file handling, operating system information, GUI and code generation. I followed the <a href="http://ecn.channel9.msdn.com/o9/ch9/3/6/0/8/8/4/Powershell4_ch9.wmv" target="_blank">Channel 9 video</a> and ran into a problem on the first example given.</p>
<p>First I ran the command <strong>Import-Module PowerShellPack</strong>.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/Powershell_Import_Module_PowerShellPack.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Powershell Import Module PowerShellPack" border="0" alt="Powershell Import Module PowerShellPack" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/Powershell_Import_Module_PowerShellPack_thumb.png" width="644" height="375" /></a> </p>
<p>Then I tried to create, and display, a label as in the video example; <strong>New-Label &quot;Hello World&quot; -FontSize 40 -Show</strong></p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/powershell_sta_mode_error.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Powershell STA modeerror" border="0" alt="Powershell STA modeerror" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/powershell_sta_mode_error_thumb.png" width="644" height="375" /></a> </p>
<p>This resulted in the following error.</p>
<pre>

New-Object : Exception calling &quot;.ctor&quot; with &quot;0&quot; argument(s): &quot;The calling thread must be STA, because many UI components require this.&quot;
At C:\Users\Rhys\Documents\WindowsPowerShell\Modules\WPK\GeneratedControls\PresentationFramework.ps1:30292 char:29
+         $Object = New-Object &lt;&lt;&lt;&lt;  System.Windows.Controls.Label
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

</pre>
<p>OK, I seem to need to be running in STA mode. I Googled &quot;Powershell STA mode&quot; and discovered a <a href="http://stackoverflow.com/questions/1508704/does-powershell-sta-mode-eliminate-sharepoint-memory-leak-issue" target="_blank">Stackoverflow thread</a>. After reading this I thought I&#8217;d try starting Powershell with the switch <strong>-STA</strong>.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/powershell_start_in_sta_mode.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="powershell start in sta mode" border="0" alt="powershell start in sta mode" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/powershell_start_in_sta_mode_thumb.png" width="644" height="375" /></a> </p>
<p>OK, that seemed to work. Now lets try to create that label again. First load the <a href="http://code.msdn.microsoft.com/PowerShellPack" target="_blank">PowerShellPack</a> modules again since we&#8217;ve started a new session.</p>
<p><strong>Import-Module PowerShellPack</strong></p>
<p><font color="#666666">Now try to create the label again.</font></p>
<p><strong>New-Label &quot;Hello World&quot; -FontSize 40 -Show</strong></p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/Powershell_Hello_World_Label.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Powershell Hello World Label" border="0" alt="Powershell Hello World Label" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/Powershell_Hello_World_Label_thumb.png" width="644" height="375" /></a></p>
<p>OK, that&#8217;s that hurdle over. Now I can get on with exploring what this tool can do for me.</p>
<p><map name='google_ad_map_579_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/579?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_579_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=579&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fpowershellpack-sta-error%2F579' title="PowershellPack STA Error" alt=" PowershellPack STA Error" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/powershellpack-sta-error/579">PowershellPack STA Error</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/powershellpack-sta-error/579/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://ecn.channel9.msdn.com/o9/ch9/3/6/0/8/8/4/Powershell4_ch9.wmv" length="57443159" type="video/x-ms-wmv" />
		</item>
		<item>
		<title>Powershell Tools</title>
		<link>http://www.youdidwhatwithtsql.com/powershell-tools/533</link>
		<comments>http://www.youdidwhatwithtsql.com/powershell-tools/533#comments</comments>
		<pubDate>Fri, 15 Jan 2010 19:10:30 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Powershell Tools]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/powershell-tools/533</guid>
		<description><![CDATA[I love Powershell. You can do some really cool things with just a few lines of code that you would struggle to do any other way. There&#8217;s quite a community around Powershelll providing a fair number of tools. Here&#8217;s a round-up of a few I have used. PowerGUI &#8211; http://powergui.org PowerGUI is a project supported [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/powershell-tools/533">Powershell Tools</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Powershell</a>. You can do some really cool things with just a few lines of code that you would struggle to do any other way. There&#8217;s quite a community around Powershelll providing a fair number of tools. Here&#8217;s a round-up of a few I have used.</p>
<p><strong>PowerGUI &#8211; <a title="http://powergui.org" href="http://powergui.org">http://powergui.org</a></strong></p>
<p>PowerGUI is a project supported by <a href="http://www.quest.com/" target="_blank">Quest Software</a> consisting of a GUI front end for <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Powershell</a> and a neat script editor. PowerGUI is easily extendable through its <a href="http://powergui.org/kbcategory.jspa?categoryID=21" target="_blank">powerpack</a> feature. By my reckoning there already over 100 powerpacks available that help you manage <a href="http://powergui.org/entry.jspa?externalID=2442&amp;categoryID=54" target="_blank">SQL Server</a>, <a href="http://powergui.org/entry.jspa?externalID=1802&amp;categoryID=290" target="_blank">VMWare</a>, <a href="http://powergui.org/entry.jspa?externalID=2033&amp;categoryID=290" target="_blank">Citrix</a>, <a href="http://powergui.org/entry.jspa?externalID=1893&amp;categoryID=354" target="_blank">Sharepoint</a> and fun things like <a href="http://www.powergui.org/entry.jspa?externalID=2034" target="_blank">Facebook Organizer</a> and <a href="http://www.powergui.org/entry.jspa?externalID=2362&amp;categoryID=56" target="_blank">Twitter Powerpack</a></p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="PowerGUI Interface" border="0" alt="PowerGUI Interface" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image_thumb.png" width="244" height="148" /></a> </p>
<p>PowerGUI exposes the <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Powershell</a> code it uses, similarly to <a href="http://msdn.microsoft.com/en-us/library/ms189826.aspx" target="_blank">T-SQL</a> scripting in <a href="http://msdn.microsoft.com/en-us/library/ms174173.aspx" target="_blank">SSMS</a>,&#160; making this a useful starting point for your own scripts.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Powershell Scipting in PowerGUI" border="0" alt="Powershell Scipting in PowerGUI" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image_thumb1.png" width="244" height="150" /></a>&#160;</p>
<p>Windows Admins may find PowerGUI useful for many tasks but I’m much more of a scripter so I really like the Script Editor. It’s lightweight and has intellisense support helping out when writing scripts. It terms of Powershell editors this one gets top points from me.</p>
<p><strong><font color="#666666">Windows Powershell ISE </font></strong></p>
<p><font color="#666666">This product ships with <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Powershell</a> 2.0 and is Microsoft&#8217;s own stab at a GUI for their fantastic scripting language. The environment is very basic, something they <a href="http://blogs.msdn.com/powershell/archive/2008/12/29/powershell-ise-can-do-a-lot-more-than-you-think.aspx" target="_blank">freely admit,</a> and doesn&#8217;t compare to the other products on this page. Perhaps one to watch in the future but this doesn’t really provide anything exciting in my view yet.</font></p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Windows Powershell ISE" border="0" alt="Windows Powershell ISE" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image_thumb2.png" width="244" height="150" /></a> </p>
<p><strong><font color="#666666">PrimalForms Community Edition</font></strong></p>
<p>Yep, a tool to build GUI&#8217;s in Powershell! As Powershell can utilise the .Net platform this was bound to happen sooner or later. In terms of GUI building it&#8217;s quite feature complete. A large number of toolbox components are available.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image3.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="PrimalForms Community Edition" border="0" alt="PrimalForms Community Edition" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image_thumb4.png" width="244" height="148" /></a>&#160;</p>
<p>Anyone used to GUI building tools will feel right at home getting productive right away. One drawback seems to be the fact that you have to export Powershell code to add functionality to events (i.e. button clicks). While I can&#8217;t seem myself building any serious applications with <a href="http://blog.sapien.com/index.php/2008/11/03/free-primalforms-tool-for-powershell-released/" target="_blank">PrimalForms</a> it&#8217;s a fun little tool that may be useful for building little utilities.</p>
<p><strong>Powershell SSIS Script Task &#8211; <a title="http://powershellscripttask.codeplex.com/" href="http://powershellscripttask.codeplex.com/">http://powershellscripttask.codeplex.com/</a></strong></p>
<p>This is something I’d really like to see SSIS provide out-of-the-box. No installer yet. Looks like you have to <a href="http://powershellscripttask.codeplex.com/SourceControl/ListDownloadableCommits.aspx" target="_blank">compile from source</a> to start playing with it. See my <a href="http://www.youdidwhatwithtsql.com/powershell-script-task-for-ssis/488" target="_blank">Powershell Script Task for SSIS</a> post for more details.</p>
<p><font color="#666666"></font></p>
<p><strong><font color="#666666">Powershell Analyzer &#8211; <a title="http://www.powershellanalyzer.com/" href="http://www.powershellanalyzer.com/">http://www.powershellanalyzer.com/</a></font></strong></p>
<p>Powershell Analyzer was a very early contender into the Powershell tools market and is very feature-rich. Formally a commercial product, at US$129, it’s now totally free. The IDE provides a Script editor, console view, xml view, results explorer, provider explorer, and html and charting capabilities. </p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/powershell_analyzer.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="powershell_analyzer" border="0" alt="powershell analyzer thumb Powershell Tools" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/powershell_analyzer_thumb.png" width="244" height="150" /></a> </p>
<p>While Powershell Analyzer is probably far more feature packed than <a href="http://powergui.org" target="_blank">PowerGUI</a> I just couldn&#8217;t get on with it. The number of buttons and tabs is quite bewildering and provides far more than most of us need. I think only the most advanced users who need to live in Powershell will find this useful.</p>
<p><strong>PowerTab &#8211; <a title="http://thepowershellguy.com/blogs/posh/pages/powertab.aspx" href="http://thepowershellguy.com/blogs/posh/pages/powertab.aspx">http://thepowershellguy.com/blogs/posh/pages/powertab.aspx</a></strong></p>
<p>I really like the idea of PowerTab but I simply can&#8217;t get on with it. There&#8217;s a really cool <a href="http://thepowershellguy.com/blogs/posh/archive/2007/06/02/powertab-flash-exampes.aspx" target="_blank">PowerTab Demo</a> but I can&#8217;t make it do that! Looks like I&#8217;ll be sticking with a GUI for now!</p>
<p><strong><font color="#666666"></font></strong></p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="PowerTab extension for Powershell" border="0" alt="PowerTab extension for Powershell" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/01/image_thumb5.png" width="244" height="137" /></a></p>
<p><map name='google_ad_map_533_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/533?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_533_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=533&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fpowershell-tools%2F533' title="Powershell Tools" alt=" Powershell Tools" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/powershell-tools/533">Powershell Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/powershell-tools/533/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
