<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Friendly Units	</title>
	<atom:link href="https://www.lucd.info/2011/11/06/friendly-units/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/2011/11/06/friendly-units/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Wed, 22 May 2013 21:36:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.10</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-2311</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Wed, 22 May 2013 21:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-2311</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2011/11/06/friendly-units/#comment-2310&quot;&gt;Tony&lt;/a&gt;.

Thanks Tony.
I already replied to that question in the VMTN PowerCLI community thread.
I suspect there was a copy/paste that went wrong :-)]]></description>
			<content:encoded><![CDATA[<p>Thanks Tony.<br />
I already replied to that question in the VMTN PowerCLI community thread.<br />
I suspect there was a copy/paste that went wrong 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tony		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-2310</link>

		<dc:creator><![CDATA[Tony]]></dc:creator>
		<pubDate>Wed, 22 May 2013 20:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-2310</guid>

					<description><![CDATA[&lt;a href=&quot;#comment-1286&quot; rel=&quot;nofollow&quot;&gt;@LucD  &lt;/a&gt; 
Hi Luc

This is a great function. Thanks for all your hard work. How would you add Provisioned space? Is it possible to get provisoned space without using the Get-View Cmdlet. I can&#039;t seem to get your function to work properly when I run it against my datastores using the get-view cmdlet.

Thanks]]></description>
			<content:encoded><![CDATA[<p><a href="#comment-1286" rel="nofollow">@LucD  </a><br />
Hi Luc</p>
<p>This is a great function. Thanks for all your hard work. How would you add Provisioned space? Is it possible to get provisoned space without using the Get-View Cmdlet. I can&#8217;t seem to get your function to work properly when I run it against my datastores using the get-view cmdlet.</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Guilhermestela		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1632</link>

		<dc:creator><![CDATA[Guilhermestela]]></dc:creator>
		<pubDate>Mon, 11 Jun 2012 22:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1632</guid>

					<description><![CDATA[hahahhahaa you should re-think better Carter....&lt;a href=&quot;#comment-1284&quot; rel=&quot;nofollow&quot;&gt;@LucD &lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p>hahahhahaa you should re-think better Carter&#8230;.<a href="#comment-1284" rel="nofollow">@LucD </a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1607</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Sat, 02 Jun 2012 18:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1607</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2011/11/06/friendly-units/#comment-1606&quot;&gt;Ethan M&lt;/a&gt;.

@Ethan, thanks.
You can call the function in a calculated property. Or do you have something else in mind ?]]></description>
			<content:encoded><![CDATA[<p>@Ethan, thanks.<br />
You can call the function in a calculated property. Or do you have something else in mind ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ethan M		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1606</link>

		<dc:creator><![CDATA[Ethan M]]></dc:creator>
		<pubDate>Sat, 02 Jun 2012 15:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1606</guid>

					<description><![CDATA[Coolio.  Now to integrate this into get-process.  Exercise left to reader :-)]]></description>
			<content:encoded><![CDATA[<p>Coolio.  Now to integrate this into get-process.  Exercise left to reader 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kyle Hanson		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1312</link>

		<dc:creator><![CDATA[Kyle Hanson]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 01:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1312</guid>

					<description><![CDATA[Quite a useful function.  I wish this was an inbuilt PowerShell cmdlet.]]></description>
			<content:encoded><![CDATA[<p>Quite a useful function.  I wish this was an inbuilt PowerShell cmdlet.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1305</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Sat, 19 Nov 2011 08:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1305</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2011/11/06/friendly-units/#comment-1304&quot;&gt;Eugene&lt;/a&gt;.

@Eugene, thanks. And thanks for noticing the missing lines.]]></description>
			<content:encoded><![CDATA[<p>@Eugene, thanks. And thanks for noticing the missing lines.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eugene		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1304</link>

		<dc:creator><![CDATA[Eugene]]></dc:creator>
		<pubDate>Sat, 19 Nov 2011 07:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1304</guid>

					<description><![CDATA[Great. Thanks as always. Btw you are missing a &quot;&#060;#&#034; at the beginning of the comment section.]]></description>
			<content:encoded><![CDATA[<p>Great. Thanks as always. Btw you are missing a &#8220;&lt;#&quot; at the beginning of the comment section.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1286</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Mon, 14 Nov 2011 09:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1286</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2011/11/06/friendly-units/#comment-1285&quot;&gt;jessie&lt;/a&gt;.

@Jessie, the Free space property is returned by the Get-Datastore cmdlet as well.
So it&#039;s just a matter of including it in the Select cmdlet.
Something like this
&lt;code&gt;
Get-Datastore -Name DS1 &#124;
Select Name,
	@{N=&quot;Capacity&quot;;E={Get-FriendlyUnit -Value ($_.CapacityMB * 1MB) &#124; %{&quot;{0,7:f2} {1,2}&quot; -f $_.Value,$_.Unit}}},
	@{N=&quot;FreeSpace&quot;;E={Get-FriendlyUnit -Value ($_.FreeSpaceMB * 1MB) &#124; %{&quot;{0,7:f2} {1,2}&quot; -f $_.Value,$_.Unit}}}
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>@Jessie, the Free space property is returned by the Get-Datastore cmdlet as well.<br />
So it&#8217;s just a matter of including it in the Select cmdlet.<br />
Something like this<br />
<code><br />
Get-Datastore -Name DS1 |<br />
Select Name,<br />
	@{N="Capacity";E={Get-FriendlyUnit -Value ($_.CapacityMB * 1MB) | %{"{0,7:f2} {1,2}" -f $_.Value,$_.Unit}}},<br />
	@{N="FreeSpace";E={Get-FriendlyUnit -Value ($_.FreeSpaceMB * 1MB) | %{"{0,7:f2} {1,2}" -f $_.Value,$_.Unit}}}<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jessie		</title>
		<link>https://www.lucd.info/2011/11/06/friendly-units/#comment-1285</link>

		<dc:creator><![CDATA[jessie]]></dc:creator>
		<pubDate>Mon, 14 Nov 2011 06:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3618#comment-1285</guid>

					<description><![CDATA[Hi,

I really like your conversion to GB, I wonder how I can add free space to the example you gave on:

I&#039;m really new to powercli so Im not too sure. much thanks!!!

Get-Datastore -Name DS1 &#124;
Select Name,@{N=&quot;Capacity&quot;;E={
  Get-FriendlyUnit -Value ($_.CapacityMB * 1MB) &#124;
  %{&quot;{0,7:f2} {1,2}&quot; -f $_.Value,$_.Unit}}
}]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I really like your conversion to GB, I wonder how I can add free space to the example you gave on:</p>
<p>I&#8217;m really new to powercli so Im not too sure. much thanks!!!</p>
<p>Get-Datastore -Name DS1 |<br />
Select Name,@{N=&#8221;Capacity&#8221;;E={<br />
  Get-FriendlyUnit -Value ($_.CapacityMB * 1MB) |<br />
  %{&#8220;{0,7:f2} {1,2}&#8221; -f $_.Value,$_.Unit}}<br />
}</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
