<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>Dreaming in PowerShell : PowerShellPlus</title><link>http://powershell.com/cs/blogs/tobias/archive/tags/PowerShellPlus/default.aspx</link><description>Tags: PowerShellPlus</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Using QuickClick Solutions in Beta2</title><link>http://powershell.com/cs/blogs/tobias/archive/2009/03/09/using-quickclick-solutions-in-beta2.aspx</link><pubDate>Mon, 09 Mar 2009 08:16:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:1779</guid><dc:creator>Tobias Weltner</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://powershell.com/cs/blogs/tobias/rsscomments.aspx?PostID=1779</wfw:commentRss><comments>http://powershell.com/cs/blogs/tobias/archive/2009/03/09/using-quickclick-solutions-in-beta2.aspx#comments</comments><description>&lt;p&gt;PowerShell Plus Beta2 has a significant new feature: &lt;strong&gt;QuickClick solutions&lt;/strong&gt;. Since it is new and pretty cool, I&amp;#39;d like to give you a quick walk-through.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;QuickClick Solutions&lt;/strong&gt; are trees that can store either simple one-liner commands or complex scripts. With a &lt;strong&gt;QuickClick Solutions&lt;/strong&gt; Tree, you can&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reminder:&lt;/strong&gt; quickly and conveniently save commands you often need&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Organizer:&lt;/strong&gt; use the tree as your personal PowerShell script organizer&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Solutions Pack:&lt;/strong&gt; transfer knowledge from an experienced PS user to beginners&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Demo:&lt;/strong&gt; create interactive demos&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Share:&lt;/strong&gt; share PowerShell expertise from a specific area with others&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.21.03/pspbeta2_2D00_2.png" alt="" /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Showing And Hiding QuickClick Solutions&lt;/h2&gt;
&lt;p&gt;To show or hide the &lt;strong&gt;QuickClick Solutions&lt;/strong&gt; panel, simply hit &lt;strong&gt;CTRL+I&lt;/strong&gt; or use &lt;em&gt;View-QuickClick Solutions&lt;/em&gt;. Note that this feature was introduced in version 2.1.0.45 (Beta2). You may want to upgrade to that version.&lt;/p&gt;
&lt;p&gt;The tree panel is a regular docking window so you can pin, dock and undock the panel. However, the best way is to keep the tree docked at the left side and use &lt;strong&gt;CTRL+I&lt;/strong&gt; to show and hide when necessary. Position your mouse cursor over the right border of the docked control to make it wider.&lt;/p&gt;
&lt;h2&gt;Using Existing QuickClick Solutions&lt;/h2&gt;
&lt;p&gt;From an end-users perspective, all you need to do is to expand a QuickClick solutions tree and select the command you would like to try. When you hover over a node, a tooltip appears and shows you a preview of the code stored in this node, along with a description (if the node has one).&lt;/p&gt;
&lt;p&gt;You can either double-click a selected tree node or select it and press ENTER. In both cases, the command stored inside the selected node is typed into your console. Press ENTER again to actually execute the code.&lt;/p&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;Note: The tree will never execute code right away because you and only you can decide whether code is beningn or not and whether you want to execute it. This is why the tree only inserts code into the console but leaves it to you to actually press &lt;strong&gt;ENTER&lt;/strong&gt; to execute it. If you must execute code in&amp;nbsp; one step, hold &lt;strong&gt;CTRL&lt;/strong&gt; while double-clicking a node.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There are a couple of tricks you can use:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When you insert a node code by pressing &lt;strong&gt;ENTER&lt;/strong&gt;, you typically press &lt;strong&gt;ENTER &lt;/strong&gt;again to try out the code. Then, you can press &lt;strong&gt;TAB&lt;/strong&gt; to return selection back to the tree. This way, you do not need to use the mouse to work your way through a tree.&lt;/li&gt;
&lt;li&gt;You can drag &amp;amp; drop a node into any text-based program that accepts text drag&amp;amp;drop such as the script editor.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Reorganizing Your Tree&lt;/h2&gt;
&lt;p&gt;You can easily reorganize your tree in any way you want. Simply drag and drop tree folders or tree nodes to other locations in your tree. This way, you can change order, place items inside a container, etc.&lt;/p&gt;
&lt;p&gt;To delete folders or nodes you no longer need, select them and press &lt;strong&gt;DEL&lt;/strong&gt;.&lt;/p&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;Note: Currently, you cannot select more than one item in the tree which is a limitation of the underlying treeview control.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Adding New Items To Your Tree&lt;/h2&gt;
&lt;p&gt;Your &lt;strong&gt;QuickClick Solutions Tree&lt;/strong&gt; can grow. To add new folders or items, right click the folder or item you would like to use as a starting point, then choose &lt;strong&gt;New&lt;/strong&gt; in the context menu. Or, use these keyboard shortcuts:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.21.03/pspbeta2_2D00_6.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;CTRL+SHIFT+F: New Folder&lt;br /&gt;CTRL+SHIFT+L: New One-Liner&lt;br /&gt;CTRL+SHIFT+N: New Script&lt;/p&gt;
&lt;p&gt;To rapidly add code to your tree, you can also create a new one-liner that automatically contains the text you entered into the console or a script that contains the script actively open in the script editor.&lt;/p&gt;
&lt;p&gt;Here is how you add a new one-liner:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Play with code in the interactive console until it really works the way you like.&lt;/li&gt;
&lt;li&gt;Press &lt;strong&gt;ARROWUP&lt;/strong&gt; to bring back the code you entered last into the console&lt;/li&gt;
&lt;li&gt;Press &lt;strong&gt;CTRL+SHIFT+C&lt;/strong&gt; to create a new One-Liner node in your solutions tree. Its name is selected so you can immediately assign it a new name.&lt;/li&gt;
&lt;li&gt;Optionally, drag and drop the new node to a better position in your tree&lt;/li&gt;
&lt;li&gt;Whenever you select your new item and press &lt;strong&gt;ENTER&lt;/strong&gt;, the code you saved is typed into the console&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;With this approach, you can rapidly create demos, too.&lt;/p&gt;
&lt;p&gt;And here is how you add a new script node:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the built-in editor, i.e. press &lt;strong&gt;CTRL+E&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Load a script, or create a script and make sure you save it&lt;/li&gt;
&lt;li&gt;Go back to the console, and press &lt;strong&gt;CTRL+SHIFT+S&lt;/strong&gt;. A new script item is inserted into the tree. Its name is selected so you can assign a better name.&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;Note: When you insert a script into the tree, the node gets a blue PS icon. This is a script link. The node points to your actual script. Script nodes are a great way for you to organize your PowerShell scripts because once you have inserted a script file into the tree, you can safely drag&amp;amp;drop it inside the tree and categorize it into whatever folder you want without touching the original script the node points to.&lt;/span&gt;&lt;/p&gt;
&lt;p class="style1"&gt;To make organizing even easier, you can also drag and drop &lt;strong&gt;PS1&lt;/strong&gt; script files right into the tree.&lt;/p&gt;
&lt;p class="style1"&gt;&lt;img src="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.21.03/pspbeta2_2D00_7.png" alt="" /&gt;&lt;/p&gt;
&lt;p class="style1"&gt;Alternatively, you can embed scripts into the tree, too. This way, the tree stores the script code, and the external script reference is no longer needed. Embedding scripts is cool when you plan to share your tree with others. To embed a script, right-click it and choose &lt;strong&gt;Embed&lt;/strong&gt;. It turns into a green icon.&lt;/p&gt;
&lt;h2&gt;Creating A New QuickClick Solutions Tree&lt;/h2&gt;
&lt;p&gt;You can create and use as many QuickClick Solutions trees as you want. To create a new tree, To create a new solutions tree, right-click the name of an existing tree and choose &lt;strong&gt;Add New&lt;/strong&gt;. A submenu opens:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Blank Panel: &lt;/strong&gt;opens a new blank panel. This is best when you plan to create a new panel from scratch&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Load Panel:&lt;/strong&gt; enables you to open a panel you saved before. Use this if you share trees and would like to load a new one you have received from a friend&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Factory Default:&lt;/strong&gt; Preloads the standard panel we ship with the product&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;Note: You can copy and paste items between trees. Simply select a node or container, then press &lt;strong&gt;CTRL+C&lt;/strong&gt; to copy. Select a different panel and different tree, and press &lt;strong&gt;CTRL+V&lt;/strong&gt; to insert the selected item.&lt;/span&gt;&lt;/p&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;&lt;img src="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.21.03/pspbeta2_2D00_8.png" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Exporting Trees To Share With Others&lt;/h2&gt;
&lt;p&gt;To export a tree, all you really need to do is to save it as XML to file. Right-click the tree to open a context menu with the &lt;strong&gt;Save As&lt;/strong&gt;-command. Once saved, you simply share the XML file with others (see below).&lt;/p&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;Note: When you export a tree, make sure you convert all script nodes to embedded scripts so you do not break links between your tree and external scripts. There is currently no way to do that automatically yet.&lt;/span&gt;&lt;/p&gt;
&lt;p class="style1"&gt;Do not use &lt;strong&gt;Save As&lt;/strong&gt; and save the tree to a USB stick directly because when you remove the stick and restart PowerShellPlus, it would no longer find the tree file and remove it automatically from your panels.&lt;/p&gt;
&lt;h2&gt;Loading And Merging Panels&lt;/h2&gt;
&lt;p&gt;The best way of loading new trees is by dragging and dropping one or more XML definition files into the &lt;strong&gt;QuickClick Solutions&lt;/strong&gt; panel. You then get options:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.21.03/pspbeta2_2D00_9.png" alt="" /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Merge:&lt;/strong&gt; The content is merged into the existing tree. This way, you can add new items to an existing tree&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replace:&lt;/strong&gt; The current tree is closed and the new one loaded instead&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;New Panel:&lt;/strong&gt; The new tree is opened inside a new panel&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="style1"&gt;&lt;span style="color:#008000;"&gt;Note: There is still a bug. When you choose &lt;strong&gt;Cancel&lt;/strong&gt;, the tree is still loaded. &lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Call To Action&lt;/h2&gt;
&lt;p&gt;Please let us know what you think and share feedback: &lt;a href="http://powershell.com/cs/forums/93.aspx"&gt;Visit Beta Place&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To read more about PowerShell Plus Beta2 and where to get it, &lt;a href="http://powershell.com/cs/blogs/news/archive/2009/03/08/powershellplus-beta2-available.aspx"&gt;here are all details&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Have a lot of fun,&lt;/p&gt;
&lt;p&gt;may the PowerShell be with you,&lt;/p&gt;
&lt;p&gt;-Tobias&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://powershell.com/cs/aggbug.aspx?PostID=1779" width="1" height="1"&gt;</description><category domain="http://powershell.com/cs/blogs/tobias/archive/tags/PowerShellPlus/default.aspx">PowerShellPlus</category><category domain="http://powershell.com/cs/blogs/tobias/archive/tags/QuickClick/default.aspx">QuickClick</category><category domain="http://powershell.com/cs/blogs/tobias/archive/tags/Solution/default.aspx">Solution</category></item><item><title>Using PowerShellPlus with PowerShell V2 (CTP3)</title><link>http://powershell.com/cs/blogs/tobias/archive/2009/01/04/using-powershellplus-with-powershell-v2-ctp3.aspx</link><pubDate>Sun, 04 Jan 2009 21:54:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:803</guid><dc:creator>Tobias Weltner</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://powershell.com/cs/blogs/tobias/rsscomments.aspx?PostID=803</wfw:commentRss><comments>http://powershell.com/cs/blogs/tobias/archive/2009/01/04/using-powershellplus-with-powershell-v2-ctp3.aspx#comments</comments><description>&lt;p&gt;The great news is: PowerShellPlus works as-is with PowerShell V1 and PowerShell V2, indicating the stable and solid approach of its engine. No updates needed. From the very beginning, we took care to use only approved and backwards-compatible PowerShell APIs.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t use &lt;a href="http://www.powershellplus.com"&gt;PowerShellPlus&lt;/a&gt; yet?&amp;nbsp; It is an awesome interactive console and PowerShell editor, and you should really try it! It is derived from famous &amp;quot;PowerShellIDE&amp;quot; which was the world&amp;#39;s first PowerShell GUI, editor and debugger (surfaced June 2006). Yet again, it pays off to have solid 4 years of experience in this product.&lt;/p&gt;
&lt;p&gt;There are a couple of things you should know when you just upgraded from V1 to V2 to get PSP to recognize the new V2 features.&lt;/p&gt;
&lt;h2&gt;Update the Cache&lt;/h2&gt;
&lt;p&gt;For speed purposes, PowerShellPlus caches information regarding available Snap-Ins and Cmdlets. So when you have been using PSP on PowerShell V1 for a while and upgrade to PowerShell V2 CTP3, things continue to work as expected except all new V2 specific Cmdlet parameters and help pages are still missing.&lt;/p&gt;
&lt;p&gt;Normally, PSP detects at startup all freshly added Snapins and adds them to its cache. Upgrading PowerShell is a whole new ballgame though because actually no new snapins is added. Instead, existing snapins are updated.&lt;/p&gt;
&lt;p&gt;To manually reset and update PSPs internal cache, do this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Launch PowerShell Plus&lt;/li&gt;
&lt;li&gt;Hold down SHIFT when the splash screen opens to open the startup management dialog&lt;/li&gt;
&lt;li&gt;Check the option &amp;quot;Clear cached Cmdlet info&amp;quot;, then click OK&lt;/li&gt;
&lt;li&gt;PSP starts and re-examines all available snapins. This may take a minute or two, and you will see a green bar with progress information. Once the green bar is gone, you are all set.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once you cleared and updated the cache, try this:&lt;/p&gt;
&lt;p&gt;Get-WMIObject -&lt;/p&gt;
&lt;p&gt;Code completion will show the complete list of V2 parameters.&lt;/p&gt;
&lt;h2&gt;Update the Learning Center&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;d also like to update the learning center help pages, keep this in mind: the procedure you just executed automatically adds all new help topics to the learning center. It does not update existing topics though. So to update the learning center, simply delete its cache before you do the procedure above (&amp;quot;Yeah, thanks for telling me now! Just did it!&amp;quot; -&amp;nbsp;oh well, ok, just do it again)!&lt;/p&gt;
&lt;p&gt;How do I clear the learning center cache? For example like this:&lt;/p&gt;
&lt;p&gt;del $env:localappdata\PowerShellPlus\manpages\*.htm -whatif&lt;/p&gt;
&lt;p&gt;(Remove the -whatif if you are confident you typed in the correct line)&lt;/p&gt;
&lt;h2&gt;What&amp;#39;s Next?&lt;/h2&gt;
&lt;p&gt;Of course there are plenty of additional extras in PowerShell V2 like block comments and inline code. We will support them with one of our next maintenance releases but for now, isn&amp;#39;t it good to know that PowerShellPlus runs beautifully with PowerShell V2 CTP3? &lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;-Tobias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://powershell.com/cs/aggbug.aspx?PostID=803" width="1" height="1"&gt;</description><category domain="http://powershell.com/cs/blogs/tobias/archive/tags/PowerShellPlus/default.aspx">PowerShellPlus</category><category domain="http://powershell.com/cs/blogs/tobias/archive/tags/Cache/default.aspx">Cache</category><category domain="http://powershell.com/cs/blogs/tobias/archive/tags/CTP3/default.aspx">CTP3</category></item></channel></rss>