<?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>Search results for 'app:weblogs' matching tags 'PowerShell' and 'Codeplex'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=app:weblogs&amp;tag=PowerShell,Codeplex&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:weblogs' matching tags 'PowerShell' and 'Codeplex'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>PowerTab for PowerShell version 2.0 beta released on CodePlex</title><link>http://powershell.com/cs/blogs/the-powershell-guy/archive/2010/08/02/powertab-for-powershell-version-2-0-beta-released-on-codeplex.aspx</link><pubDate>Mon, 02 Aug 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:7326</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;&lt;font face="Consolas"&gt;After a long silence, a grand new version of PowerTab is there !&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;With thanks to Jason Archer who took up the job and converted PowerTab to a PowerShell V2 Module. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;Next to that, he fixed the issues with PowerTab on V2.0 and made some fabulous additions to PowerTab too ! &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;You can find PowerTab on Codeplex now : &lt;a title="http://powertab.codeplex.com/" href="http://powertab.codeplex.com/"&gt;http://powertab.codeplex.com/&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;I’m using Jason’s version for the last weeks and do not want to go back, as some very annoying issues with PowerTab on V2.0 are fixed and I really love the new functionality, so if you are a PowerTab user and are on PowerShell V2.0, I recommend to upgrade as soon as possible to this new version, it is still in Beta and testers are wanted ( please use &lt;a href="http://powertab.codeplex.com/workitem/list/basic"&gt;issue tracker&lt;/a&gt; on CodePlex to provide bug reports or other input), but it is much better already as my old version and everything works the same or better, hence also for normal daily usage I recommend :&lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;&lt;strong&gt;&lt;font size="5"&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;&lt;strong&gt;&lt;font size="5"&gt;Upgrade as soon as Possible !&lt;/font&gt;&lt;/strong&gt;&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;Jason did an amazing Job.&lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;I will follow up with a series about using PowerTab and the new features.&lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;Enjoy,&lt;/font&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;font face="Consolas"&gt;Greetings /\/\o\/\/&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=16736" width="1" height="1" alt="" /&gt;</description></item><item><title>PowerShell Script Provider</title><link>http://powershell.com/cs/blogs/under-the-stairs/archive/2010/06/18/powershell-script-provider.aspx</link><pubDate>Fri, 18 Jun 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:6867</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;Just when you think we’ve seen all that the (awesome) PowerShell community can do, along comes another cool development. The latest coolness comes from &lt;a href="http://www.nivot.org/" target="_blank"&gt;Oisin Grehan&lt;/a&gt; in the form of a PowerShell Script provider. This is a tool, &lt;a href="http://psprovider.codeplex.com/" target="_blank"&gt;which you can download from Codeplex&lt;/a&gt;, that enables you to write a provider purely in script without the need to do stuff in C#. This is pretty cool!. &lt;/p&gt;  &lt;p&gt;The project is at version 0.1, with at least 4 more versions planned. As it says on Codeplex, this code is alpha – but knowing Oisin those versions will come quickly.&amp;#160; &lt;/p&gt;  &lt;div style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3da3a999-fa78-46b0-99ef-b26aa91175fe" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/PowerShell" rel="tag"&gt;PowerShell&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Provider" rel="tag"&gt;Provider&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Script" rel="tag"&gt;Script&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Codeplex" rel="tag"&gt;Codeplex&lt;/a&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/5384857-8293473180188009389?l=tfl09.blogspot.com" alt="" /&gt;&lt;/div&gt;</description></item><item><title>SQLIse – A PowerShell SQL Server Query Tool</title><link>http://powershell.com/cs/blogs/under-the-stairs/archive/2010/06/04/sqlise-a-powershell-sql-server-query-tool.aspx</link><pubDate>Fri, 04 Jun 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:6759</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;I am doing some work at the moment building SQL PowerShell training for an upcoming &lt;a href="http://www.powershellmasterclass.com" target="_blank"&gt;PowerShell MasterClass&lt;/a&gt;. In my searching, I came across a small project being done by Chad Miller, called SQLIse. As Chad describes in his blog, SQLISE is an ISE add-on that provides&amp;#160; “a&lt;em&gt; basic IDE for T-SQL that includes the ability to exit, execute, parse and format SQL code from within PowerShell ISE”&lt;/em&gt;. &lt;/p&gt;  &lt;p&gt;SQLISE is a part of a larger SQL PowerShell project called SQL Extensions for PowerShell or SQLPSX. Having played a bit with both extensions, they are pretty cool and can certainly help IT Pros who have to deal with SQL. Chad has even created a short video to demostrate SQLISE – get this at YouTube: &lt;a title="http://www.youtube.com/v/1KcNSHn7oTA&amp;amp;hl=en" href="http://www.youtube.com/v/1KcNSHn7oTA&amp;amp;hl=en"&gt;http://www.youtube.com/v/1KcNSHn7oTA&amp;amp;hl=en&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;SQLISE has two pre-requisites. First, you need to have the PowerShell Pack installed and you need the SQLPX extensions loaded. You can get PowerShellPack from the &lt;a href="http://www.youtube.com/v/1KcNSHn7oTA&amp;amp;hl=en" target="_blank"&gt;MSDN Code Gallery&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;One issue I faced was that the SQLIse installation process was not seamless or easy.&amp;#160; In order to get this running, I needed two uber-modules (SQLPSX and PowerShellPack) and these come from different places. Second, the installation process requires you to run programs, SQLPSX_Install and PowerShellPack.MSI. &lt;/p&gt;  &lt;p&gt;I find this somewhat contrary to the spirit of Modules in PowerShell V2 in that modules should be deployable using only Xcopy. In my case, I did not want either uber-module to be loaded in the personal modules folder, but in the system modules folder. But the installer(s) gave me no option. More importantly, while the SQLPSX installation program seemed to run, but left the module folder empty. A bit of hacking (and running streams.exe across the expanded file set!)&amp;#160; enabled me to get the module installed. But sadly the hacking did not work well – and some of the features do&amp;#160; not work. More hacking I suspect is needed.&lt;/p&gt;  &lt;p&gt;In summary, a great feature let down by the complex installation process.&lt;/p&gt;  &lt;div style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:6da1f4e1-d039-4703-971f-54ef89b010a9" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/PoweShell" rel="tag"&gt;PoweShell&lt;/a&gt;,&lt;a href="http://technorati.com/tags/CodePlex" rel="tag"&gt;CodePlex&lt;/a&gt;,&lt;a href="http://technorati.com/tags/MSDN+Code+Gallery" rel="tag"&gt;MSDN Code Gallery&lt;/a&gt;,&lt;a href="http://technorati.com/tags/SQL" rel="tag"&gt;SQL&lt;/a&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/5384857-8149237028601266807?l=tfl09.blogspot.com" alt="" /&gt;&lt;/div&gt;</description></item><item><title>PowerShell Admin Module</title><link>http://powershell.com/cs/blogs/under-the-stairs/archive/2010/05/23/powershell-admin-module.aspx</link><pubDate>Sun, 23 May 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:6651</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;I’ve been playing a bit with a &lt;a href="http://www.codeplex.com" target="_blank"&gt;Codeplex&lt;/a&gt; project called &lt;a href="http://psam.codeplex.com/" target="_blank"&gt;PowerShell Admin Modules&lt;/a&gt; (PSAM). Developed by Richard Siddaway, PSAM is intended to supply a number of PowerShell modules for use by IT Pros. The first of these modules contains 6 functions that work with shares, as follows:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Get-Share &lt;/li&gt;    &lt;li&gt;Get-ShareAccessMask &lt;/li&gt;    &lt;li&gt;Get-ShareSecurity&lt;/li&gt;    &lt;li&gt;New-Share&lt;/li&gt;    &lt;li&gt;Remove-Share&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Using this module is easy. First download the zip file from Codeplex and expand the contents into your modules folder. Then import the module using Import-Module. It looks like this:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#804040" face="Courier New"&gt;&lt;strong&gt;PSH [C:\foo]: import-module PAMSHARES         &lt;br /&gt;PSH [C:\foo]: get-command * -module pamshares &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#804040" face="Courier New"&gt;&lt;strong&gt;CommandType&amp;#160;&amp;#160;&amp;#160;&amp;#160; Name&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Definition         &lt;br /&gt;-----------&amp;#160;&amp;#160;&amp;#160;&amp;#160; ----&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ----------          &lt;br /&gt;Function&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Get-Share&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...          &lt;br /&gt;Function&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Get-ShareAccessMask&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...          &lt;br /&gt;Function&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Get-ShareSecurity&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...          &lt;br /&gt;Function&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; New-Share&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...          &lt;br /&gt;Function&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Remove-Share&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...          &lt;br /&gt;Function&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Set-Share&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ... &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#804040" face="Courier New"&gt;&lt;strong&gt;PSH [C:\foo]: new-share c:\foo foo2         &lt;br /&gt;Share foo2 was created          &lt;br /&gt;PSH [C:\foo]: get-share foo2 &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#804040" face="Courier New"&gt;&lt;strong&gt;Name&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Path&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Description         &lt;br /&gt;----&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ----&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -----------          &lt;br /&gt;foo2&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; c:\foo &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#804040" face="Courier New"&gt;&lt;strong&gt;PSH [C:\foo]: remove-share foo2&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#804040" face="Courier New"&gt;&lt;/font&gt;&lt;/strong&gt;    &lt;br /&gt;The module works well enough although get-share does not seem to support wildcards and the order of the parameters in New-Share is different from that of Net Share (for those of us who even remember Net Share!). I’ve posted a fix to the wildcard issue on CodePlex. For the other issue, one could just change the order of the parameters in New Share. This is the joy of open source proejcts like this – you can fix ‘bugs’ and make your own changes as you see fit. &lt;/p&gt;  &lt;div style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:928a1bb7-5f80-4960-ad93-b4b2f36d8dd9" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/PowerShell" rel="tag"&gt;PowerShell&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Codeplex" rel="tag"&gt;Codeplex&lt;/a&gt;,&lt;a href="http://technorati.com/tags/PowerShell+Admin+Modules" rel="tag"&gt;PowerShell Admin Modules&lt;/a&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/5384857-3292500082185111882?l=tfl09.blogspot.com" alt="" /&gt;&lt;/div&gt;</description></item><item><title>Get-VMMemory</title><link>http://powershell.com/cs/blogs/powershell-scripts/archive/2010/01/09/get-vmmemory.aspx</link><pubDate>Sat, 09 Jan 2010 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:4415</guid><dc:creator>Anonymous</dc:creator><description>  &lt;div style="width:98.99%;height:791px;" id="hlDiv" class="dp-highlighter"&gt;   &lt;div class="bar"&gt;&lt;/div&gt;    &lt;ol class="dp-rb"&gt;     &lt;li class="alt"&gt;&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span class="comment"&gt;#&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;.SYNOPSIS&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; This script displays the virtual Memory assigned to Hyper-V&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; VMs on a given host.&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;.DESCRIPTION&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; This script uses The Hyper-V module from Codeplex to first&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; get all the VMs on a given server, then display the memory&amp;#160;&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; allocated to each VM.&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;.NOTES&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; File Name&amp;#160; : get-VMMemory.ps1&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Author&amp;#160;&amp;#160;&amp;#160;&amp;#160; : Thomas Lee - tfl&lt;span class="variable"&gt;@psp&lt;/span&gt;&lt;span&gt;.co.uk&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Requires&amp;#160;&amp;#160; : PowerShell Version 2.0&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; and HyperV module from Codeplex&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; http://pshyperv.codeplex.com&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;.LINK&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; This script posted to:&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; http://www.pshscripts.blogspot.com&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;.EXAMPLE&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; PSH [C:\Foo]: c:\foo\get-VMMemory.ps1 Foo21&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; On Server Foo21 there are 2 VMs as follows:&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Virtual Machine&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Memory&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; SQL-2008-R2-CTP&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 768&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Server-2008-R2&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 768&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;.EXAMPLE&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; PSH [C:\Foo]: &lt;span class="string"&gt;&amp;quot;Server2&amp;quot;&lt;/span&gt;&lt;span&gt; | c:\foo\get-VMMemory.ps1 Foo21&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; On Server Server2 there are 3 VMs as follows:&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Virtual Machine&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Memory&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Server-2008-R2-1&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 768&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Server-2008-R2-2&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 768&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160;&amp;#160;&amp;#160; Server-2008-R2-3&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 768&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;#&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;# Parameter is the machine to look at&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="keyword"&gt;param&lt;/span&gt;&lt;span&gt; (&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;[Parameter(Position=0, Mandatory=&lt;span class="variable"&gt;$false&lt;/span&gt;&lt;span&gt;,ValueFromPipeLine=&lt;/span&gt;&lt;span class="variable"&gt;$true&lt;/span&gt;&lt;span&gt;)]&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;[string] &lt;span class="variable"&gt;$Computer&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span class="string"&gt;&amp;quot;MyServer&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;)&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="comment"&gt;##&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;# Start of script&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="comment"&gt;##&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="comment"&gt;# Import the module&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;Import-Module HyperV&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;# Get all the VMs on the target system&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="variable"&gt;$Vms&lt;/span&gt;&lt;span&gt; = Get-Vm -Server &lt;/span&gt;&lt;span class="variable"&gt;$Computer&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="comment"&gt;# Now loop through the VMs and display memory allocated&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="string"&gt;&amp;quot;On Server {0} there are {1} VMs as follows:&amp;quot;&lt;/span&gt;&lt;span&gt; -f &lt;/span&gt;&lt;span class="variable"&gt;$Computer&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span class="variable"&gt;$Vms&lt;/span&gt;&lt;span&gt;.count&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="string"&gt;&amp;quot;{0,-30}&amp;#160;&amp;#160;&amp;#160; {1,10}&amp;quot;&lt;/span&gt;&lt;span&gt; -f &lt;/span&gt;&lt;span class="string"&gt;&amp;quot;Virtual Machine&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span class="string"&gt;&amp;quot;Memory&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="keyword"&gt;Foreach&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span class="variable"&gt;$Vm&lt;/span&gt;&lt;span&gt;&amp;#160;&lt;/span&gt;&lt;span class="keyword"&gt;in&lt;/span&gt;&lt;span&gt;&amp;#160;&lt;/span&gt;&lt;span class="variable"&gt;$Vms&lt;/span&gt;&lt;span&gt;) {&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;&lt;span class="variable"&gt;$Mem&lt;/span&gt;&lt;span&gt; = Get-Vmmemory &lt;/span&gt;&lt;span class="variable"&gt;$Vm&lt;/span&gt;&lt;/span&gt; &lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="string"&gt;&amp;quot;{0,-30}&amp;#160;&amp;#160;&amp;#160; {1,10}&amp;quot;&lt;/span&gt;&lt;span&gt; -f &lt;/span&gt;&lt;span class="variable"&gt;$Vm&lt;/span&gt;&lt;span&gt;.Elementname,&lt;/span&gt;&lt;span class="variable"&gt;$Mem&lt;/span&gt;&lt;span&gt;.Virtualquantity&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;      &lt;li class="class"&gt;&lt;span&gt;}&amp;#160;&amp;#160; &lt;/span&gt;&lt;/li&gt;      &lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;# End of script&lt;/span&gt;&lt;span&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;   &lt;/ol&gt; &lt;/div&gt;  &lt;div style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:a536b48a-be5d-4388-a5ab-578e68ff557d" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/HyperV" rel="tag"&gt;HyperV&lt;/a&gt;,&lt;a href="http://technorati.com/tags/HyperV+Module" rel="tag"&gt;HyperV Module&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Codeplex" rel="tag"&gt;Codeplex&lt;/a&gt;,&lt;a href="http://technorati.com/tags/PowerShell" rel="tag"&gt;PowerShell&lt;/a&gt;,&lt;a href="http://technorati.com/tags/script" rel="tag"&gt;script&lt;/a&gt;,&lt;a href="http://technorati.com/tags/memory" rel="tag"&gt;memory&lt;/a&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/546036873798832453-3371834349706988687?l=pshscripts.blogspot.com" alt="" /&gt;&lt;/div&gt;</description></item></channel></rss>