<?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>Jonathan Medd&#039;s Blog &#187; powercli</title>
	<atom:link href="http://www.jonathanmedd.net/tag/powercli/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jonathanmedd.net</link>
	<description>Scripting. Powershell, VMware, Windows, Active Directory &#38; Exchange. All that kind of stuff.....</description>
	<lastBuildDate>Wed, 01 Feb 2012 13:58:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Basic VMware Cluster Capacity Check with PowerCLI</title>
		<link>http://www.jonathanmedd.net/2012/01/basic-cluster-vmware-capacity-check-with-powercli.html</link>
		<comments>http://www.jonathanmedd.net/2012/01/basic-cluster-vmware-capacity-check-with-powercli.html#comments</comments>
		<pubDate>Wed, 18 Jan 2012 17:09:39 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=2118</guid>
		<description><![CDATA[I recently needed to provide a high level capacity overview per VMware cluster looking at some metrics of interest that were being used as a guide to the capacity state of a cluster. Note: these are by no means definitive or the ones you should be using in your environment, but for these purposes they [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to provide a high level capacity overview per VMware cluster looking at some metrics of interest that were being used as a guide to the capacity state of a cluster. Note: these are by no means definitive or the ones you should be using in your environment, but for these purposes they met the requirements. The metrics I looked at per cluster were the ratio of vCPUs to pCPUs, the amount of Effective, Allocated and average Active Memory and the amount of Free Diskspace.</p>
<p>A couple of things to note:</p>
<p>1.The section below on datastore freespace filters out the local datastore which contains the name of the host.</p>
<pre class="brush: powershell;">

$VMHost = $Cluster | Get-VMHost | Select-Object -Last 1
$HostName = ($VMHost.name -split &quot;.&quot;, 0, &quot;simplematch&quot;)[0]
$ClusterFreeDiskspaceGB = ($VMHost | Get-Datastore | Where-Object {$_.Name -notmatch $HostName} | Measure-Object -Property FreeSpaceGB -Sum).Sum
</pre>
<p>2. I&#8217;ve recently changed the way I create custom objects to output reports with. For a long time I have used the <a href="http://www.jonathanmedd.net/2009/02/the-noble-array.html">cheat way of Select-Object</a> , partly because of performance and partly because you can&#8217;t control the order of properties in New-Object. These are being addressed in PowerShell v3 (see <a href="http://www.jonathanmedd.net/2011/09/powershell-v3-creating-objects-with-pscustomobject-its-fast.html">here</a> and <a href="http://www.jonathanmedd.net/2011/09/powershell-v3-bringing-ordered-to-your-hashtables.html">here</a>) so I thought it was about time to make the switch. This means for the time being that when working with the output you need to pipe it to Select-Object to control the order of the output, e.g.</p>
<p><strong>Get-Cluster | Get-ClusterCapacityCheck | Select-Object Cluster,ClusterCPUCores,ClusterAllocatedvCPUs,ClustervCPUpCPURatio,ClusterEffectiveMemoryGB,</strong></p>
<p><strong>ClusterAllocatedMemoryGB,ClusterActiveMemoryPercentage,ClusterFreeDiskspaceGB</strong></p>
<p style="text-align: center;"><a href="http://www.jonathanmedd.net/wp-content/uploads/2012/01/Get-ClusterCapacityCheck.png"><img class="aligncenter size-full wp-image-2130" title="Get-ClusterCapacityCheck" src="http://www.jonathanmedd.net/wp-content/uploads/2012/01/Get-ClusterCapacityCheck.png" alt="" width="697" height="246" /></a></p>
<pre class="brush: powershell;">

function Get-ClusterCapacityCheck {
&lt;#
.SYNOPSIS
Retrieves basic capacity info for VMware clusters

.DESCRIPTION
Retrieves basic capacity info for VMware clusters

.PARAMETER  ClusterName
Name of the computer to test the services for

.EXAMPLE
PS C:\&gt; Get-ClusterCapacityCheck -ClusterName Cluster01

.EXAMPLE
PS C:\&gt; Get-Cluster | Get-ClusterCapacityCheck

.NOTES
Author: Jonathan Medd
Date: 18/01/2012
#&gt;

[CmdletBinding()]
param(
[Parameter(Position=0,Mandatory=$true,HelpMessage=&quot;Name of the cluster to test&quot;,
ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$true)]
[System.String]
$ClusterName
)

begin {
$Finish = (Get-Date -Hour 0 -Minute 0 -Second 0)
$Start = $Finish.AddDays(-1).AddSeconds(1)

New-VIProperty -Name FreeSpaceGB -ObjectType Datastore -Value {
param($ds)
[Math]::Round($ds.FreeSpaceMb/1KB,0)
} -Force

}

process {

$Cluster = Get-Cluster $ClusterName

$ClusterCPUCores = $Cluster.ExtensionData.Summary.NumCpuCores
$ClusterEffectiveMemoryGB = [math]::round(($Cluster.ExtensionData.Summary.EffectiveMemory / 1KB),0)

$ClusterVMs = $Cluster | Get-VM

$ClusterAllocatedvCPUs = ($ClusterVMs | Measure-Object -Property NumCPu -Sum).Sum
$ClusterAllocatedMemoryGB = [math]::round(($ClusterVMs | Measure-Object -Property MemoryMB -Sum).Sum / 1KB)

$ClustervCPUpCPURatio = [math]::round($ClusterAllocatedvCPUs / $ClusterCPUCores,2)
$ClusterActiveMemoryPercentage = [math]::round(($Cluster | Get-Stat -Stat mem.usage.average -Start $Start -Finish $Finish | Measure-Object -Property Value -Average).Average,0)

$VMHost = $Cluster | Get-VMHost | Select-Object -Last 1
$ClusterFreeDiskspaceGB = ($VMHost | Get-Datastore | Where-Object {$_.Extensiondata.Summary.MultipleHostAccess -eq $True} | Measure-Object -Property FreeSpaceGB -Sum).Sum

New-Object -TypeName PSObject -Property @{
Cluster = $Cluster.Name
ClusterCPUCores = $ClusterCPUCores
ClusterAllocatedvCPUs = $ClusterAllocatedvCPUs
ClustervCPUpCPURatio = $ClustervCPUpCPURatio
ClusterEffectiveMemoryGB = $ClusterEffectiveMemoryGB
ClusterAllocatedMemoryGB = $ClusterAllocatedMemoryGB
ClusterActiveMemoryPercentage = $ClusterActiveMemoryPercentage
ClusterFreeDiskspaceGB = $ClusterFreeDiskspaceGB
}
}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2012/01/basic-cluster-vmware-capacity-check-with-powercli.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Configuring HP EVA Recommended Settings for ESXi via PowerCLI</title>
		<link>http://www.jonathanmedd.net/2011/12/configuring-hp-eva-recommended-settings-for-esxi-via-powercli.html</link>
		<comments>http://www.jonathanmedd.net/2011/12/configuring-hp-eva-recommended-settings-for-esxi-via-powercli.html#comments</comments>
		<pubDate>Wed, 21 Dec 2011 16:56:21 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[esxi]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=2102</guid>
		<description><![CDATA[The HP Enterprise Virtual Array Family with VMware vSphere 4.0 , 4.1 AND 5.0 Configuration Best Practises Guide, available here, contains many recommendations for ESXi configuration. There are a number of recommended settings in this document to enhance the storage performance, a subset of which I have picked as appropriate for the environment and then [...]]]></description>
			<content:encoded><![CDATA[<p>The HP Enterprise Virtual Array Family with VMware vSphere 4.0 , 4.1 AND 5.0 Configuration Best Practises Guide, available <a href="http://h20195.www2.hp.com/v2/GetPDF.aspx/4AA1-2185ENW.pdf">here</a>, contains many recommendations for ESXi configuration. There are a number of recommended settings in this document to enhance the storage performance, a subset of which I have picked as appropriate for the environment and then needed to configure them on all ESXi hosts.</p>
<p>They can be implemented via PowerCLI and the below script demonstrates how these different types of settings can be configured. The most interesting one for me was setting the default Path Selection Policy to VMW_PSP_RR. The guide recommends you use the following command from the ESXi console:</p>
<p><strong>esxcli nmp satp setdefaultpsp -satp VMW_SATP_ALUA -psp VMW_PSP_RR</strong></p>
<p>With the introduction of the <strong>Get-ESXCLI</strong> cmdlet we can now carry out the equivalent from PowerCLI. <strong>Get-EsxCLI</strong> requires a direct connection to the ESXi host rather than from vCenter, so all the settings in this script are configured via a direct connection to the ESXi host</p>
<p><strong>Warning: Before carrying out any of these types of changes make sure you talk to your Storage Adminstrator to confirm what is appropriate for your own environment. Other array vendors offer different recommendations so be sure to check their documentation for similar settings.</strong></p>
<pre class="brush: powershell;">

&lt;#
.SYNOPSIS
Implement HP Recommended Settings for EVA SAN

.DESCRIPTION
Implement HP Recommended Settings for EVA SAN

.PARAMETER  HostName
Name of the ESXi host to configure the settings on

.EXAMPLE
PS C:\&gt; ./Set-HPEVAESXiConfig.ps1 -Hostname ESX01

.EXAMPLE
PS C:\&gt; Get-Content ESXServers.txt | ./Set-HPEVAESXiConfig.ps1

.NOTES
Author: Jonathan Medd
Date: 21/12/2011
#&gt;

[CmdletBinding()]
param(
[Parameter(Position=0,Mandatory=$true,HelpMessage=&quot;Name of the ESXi host to configure the settings on&quot;,
ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
[Alias('IPAddress','Server','ComputerName')]
[System.String]
$HostName
)

begin {

Write-Host &quot;Please enter credentials to connect to the ESXi hosts&quot; -ForegroundColor:Yellow
$Credential = Get-Credential
$UserName = $Credential.GetNetworkCredential().UserName
$Password = $Credential.GetNetworkCredential().Password
}

process {

Connect-VIServer $Hostname -User $Username -Password $Password | Out-Null

Write-Host &quot;Setting Disk.DiskMaxIOSize Advanced Option&quot;
Set-VMHostAdvancedConfiguration -VMHost $Hostname -Name Disk.DiskMaxIOSize -Value 128 | Out-Null

Write-Host &quot;Changing any LUNs with MultipathPolicy set to MostRecentlyUsed to be RoundRobin instead&quot;
Get-ScsiLun -VmHost $Hostname -LunType &quot;disk&quot; | Where-Object {$_.MultipathPolicy –eq &quot;MostRecentlyUsed&quot;} | Set-ScsiLun -MultipathPolicy &quot;RoundRobin&quot; | Out-Null

Write-Host &quot;Setting the default PSP to be VMW_PSP_RR&quot;
$esxCli = Get-EsxCli –Server $Hostname
$esxCli.nmp.satp.setdefaultpsp(&quot;VMW_PSP_RR&quot;, &quot;VMW_SATP_ALUA&quot;)

Write-Host &quot;Disconnecting from Host&quot;
$DefaultVIServer | Disconnect-VIServer -Confirm:$false
}
</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/12/configuring-hp-eva-recommended-settings-for-esxi-via-powercli.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UK VMUG Nov 2011 Review</title>
		<link>http://www.jonathanmedd.net/2011/12/uk-vmug-nov-2011-review.html</link>
		<comments>http://www.jonathanmedd.net/2011/12/uk-vmug-nov-2011-review.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 22:35:24 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=2050</guid>
		<description><![CDATA[A few weeks ago I attended the first ever UK based VMUG at the National Motorcycle Museum in Birmingham. Put together by the same folks who arrange the London VMUG events, it was a great day out and obviously a lot of hard work had been put in by Jane, Alaric, Simon , Stuart and [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I attended the first ever UK based VMUG at the National Motorcycle Museum in Birmingham. Put together by the same folks who arrange the London VMUG events, it was a great day out and obviously a lot of hard work had been put in by <a href="http://twitter.com/rimmergram">Jane</a>, <a href="http://twitter.com/alaricdavies">Alaric</a>, <a href="http://twitter.com/vinf_net">Simon</a> , <a href="http://twitter.com/virtual_stu">Stuar</a>t and <a href="http://twitter.com/martynstorey">Martyn</a>. I know they had put the best part of 6 months into arranging it, so a lot of effort. By staging the event in the Midlands and involving other VMUGs from the UK, including the North of England, Scotland and Ireland there were over 300 attendees.</p>
<p>I travelled up the night before and just about made it in time for a pre-show vCurry being held at the Museum. This gave a good chance to catch up with various tweeps, since I figured (and I think it panned out) that people wouldn&#8217;t hang around too long after the main event the next day, like they normally do at the London VUMG, with longer journeys home.</p>
<p>There were also more sponsors than the London events and with involvement from the Official VMUG organisation there was even a posh looking programme to accompany the day&#8217;s events. How things have come one since I attended my first London VMUG about 3 years ago!</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_09581.jpg"><img class="aligncenter size-medium wp-image-2075" title="IMG_0958" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_09581-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p>The event centered around the main area below with the keynotes from the stage at the front and vendors around the outside. This was accompanied by breakout sessions in rooms off to the sides. The only downside of the day was the lack of WIFI or 3G access since we were a couple of floors down, but thanks to the distribution of some BT OpenZone cards it was possible to stay reasonably well connected.</p>
<p style="text-align: center;"><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_03941.jpg"><img class="aligncenter size-large wp-image-2076" title="IMG_0394" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_03941-1024x764.jpg" alt="" width="614" height="458" /></a></p>
<p>I had volunteered to assist <a href="http://twitter.com/#!/alanrenouf">Alan Renouf</a> with a PowerCLI lab he had put together, which took place at the back of the main room.</p>
<p style="text-align: center;"><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0393.jpg"><img class="aligncenter size-large wp-image-2056" title="IMG_0393" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0393-764x1024.jpg" alt="" width="535" height="717" /></a></p>
<p>We turned this into a drop by area for questions about PowerCLI and PowerShell as well. While the lab proved pretty popular, the best part was taking people&#8217;s questions and showing them how PowerCLI and PowerShell might help them out in their jobs. It was quite surprising to find that there were many questions such as &#8216;What are they?&#8217;, &#8216;What can I do with them?&#8217; and &#8216;How much do they cost?&#8217; &#8211; and a lot assuming I was a VMware employee! A lot of these conversations spurned off into Alan sitting them down, demonstrating some coding and often writing a script for them to take away.</p>
<p style="text-align: center;"><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0395.jpg"><img class="aligncenter size-large wp-image-2059" title="IMG_0395" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0395-1024x764.jpg" alt="" width="614" height="458" /></a></p>
<p>I managed to get away to a couple of the sessions and in particular enjoyed <a href="http://twitter.com/julian_wood">Julian Wood&#8217;s</a> session on upgrading to vSphere 5, which was really well attended. One of the other most intriguing parts of the day was a mock VCDX panel organised by <a href="http://twitter.com/vinf_net">Simon Gallager</a>. This was an opportunity for people to practise defending a vSphere design (with a lot of onlookers for extra pressure!). You&#8217;ll notice that Duncan Epping was helping with this so the volunteers were grilled, but also received excellent feedback. The PowerCLI drop by area was positioned right next to this while it was going on and I know a number of people found the experience really useful when I talked to them as they walked away from it.</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0003.jpg"><img class="aligncenter size-full wp-image-2080" title="IMG_0003" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0003.jpg" alt="" width="720" height="960" /></a></p>
<p>I really enjoyed the day as a Community Booth Babe and now know how draining it is being on a stand all day (you can probably tell from my dishevelled look below!). The best thing for me was answering people&#8217;s PowerCLI and PowerShell questions, really kept me on my toes. The highlight being one guy who was driving into work every Saturday, carrying out a few tasks inside a VM, powering it off, taking a clone, powering it back on and then driving home &#8211; I showed  him how he could schedule this with a script and get his Saturday back <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/AlanJonathan.jpg"><img class="aligncenter size-full wp-image-2062" title="Alan&amp;Jonathan" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/AlanJonathan.jpg" alt="" width="600" height="448" /></a></p>
<p>Hopefully the team will arrange another UK centered VMUG next year after the success of this one. In the meantime, details have just been published of the<a href="http://www.myvmug.org/e/in/eid=273"> next London VMUG on January 26th</a>. I highly recommend you attend this.</p>
<p>To round things off I made my way home in very ecological style with a lift from an ex-colleague and and his awesome company vehicle <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0400.jpg"><img class="aligncenter size-large wp-image-2065" title="IMG_0400" src="http://www.jonathanmedd.net/wp-content/uploads/2011/12/IMG_0400-1024x764.jpg" alt="" width="614" height="458" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/12/uk-vmug-nov-2011-review.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New In PowerCLI 5.0 &#8211; Slides from UK PowerShell UserGroup</title>
		<link>http://www.jonathanmedd.net/2011/11/whats-new-in-powercli-5-0-slides-from-uk-powershell-usergroup.html</link>
		<comments>http://www.jonathanmedd.net/2011/11/whats-new-in-powercli-5-0-slides-from-uk-powershell-usergroup.html#comments</comments>
		<pubDate>Tue, 22 Nov 2011 22:17:10 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vSphere 5]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=2021</guid>
		<description><![CDATA[As promised, here are my slides from this evening&#8217;s UK PowerShell UserGroup &#8211; What&#8217;s New in PowerCLI 5.0. What&#8217;s New in PowerCLI 5.0 View more presentations from jonathanmedd sf]]></description>
			<content:encoded><![CDATA[<p>As promised, here are my slides from this evening&#8217;s UK PowerShell UserGroup &#8211; What&#8217;s New in PowerCLI 5.0.</p>
<div id="__ss_10278749" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="What's New in PowerCLI 5.0" href="http://www.slideshare.net/jonathanmedd/whats-new-in-powercli-50" target="_blank">What&#8217;s New in PowerCLI 5.0</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/10278749" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="425" height="355"></iframe></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/jonathanmedd" target="_blank">jonathanmedd</a></div>
</div>
<p>sf</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/11/whats-new-in-powercli-5-0-slides-from-uk-powershell-usergroup.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New in PowerCLI 5.0 &#8211; UK PowerShell User Group 22nd November</title>
		<link>http://www.jonathanmedd.net/2011/11/whats-new-in-powercli-5-0-uk-powershell-user-group-22nd-november.html</link>
		<comments>http://www.jonathanmedd.net/2011/11/whats-new-in-powercli-5-0-uk-powershell-user-group-22nd-november.html#comments</comments>
		<pubDate>Fri, 18 Nov 2011 12:56:15 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=2009</guid>
		<description><![CDATA[A quick post to let you know that I shall be presenting for an online meeting of the UK PowerShell User Group on the topic of &#8216;What&#8217;s New in PowerCLI 5.0&#8242; at 21.00 GMT on Tuesday November 22nd. Details on how to join in are available from Richard Siddaway&#8217;s website. Hope you can join us.]]></description>
			<content:encoded><![CDATA[<p>A quick post to let you know that I shall be presenting for an online meeting of the UK PowerShell User Group on the topic of &#8216;What&#8217;s New in PowerCLI 5.0&#8242; at 21.00 GMT on Tuesday November 22nd.</p>
<p>Details on how to join in <a href="http://richardspowershellblog.wordpress.com/2011/11/05/powershell-user-group-22-november/">are available from Richard Siddaway&#8217;s website</a>.</p>
<p>Hope you can join us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/11/whats-new-in-powercli-5-0-uk-powershell-user-group-22nd-november.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerCLI Drop In Area at the UK National VMUG November 3rd</title>
		<link>http://www.jonathanmedd.net/2011/10/powercli-drop-in-area-at-the-uk-national-vmug-november-3rd.html</link>
		<comments>http://www.jonathanmedd.net/2011/10/powercli-drop-in-area-at-the-uk-national-vmug-november-3rd.html#comments</comments>
		<pubDate>Wed, 26 Oct 2011 21:16:17 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1953</guid>
		<description><![CDATA[There are a lot of great reasons to sign up for the UK National VMUG on November 3rd 2011, full details are below. One reason to highlight is that during the day, Alan Renouf and I will be staffing the PowerCLI Drop In Area. We&#8217;re currently finalising the details, but this will likely consist of [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of great reasons to sign up for the UK National VMUG on November 3rd 2011, full details are below.</p>
<p>One reason to highlight is that during the day, <a href="http://twitter.com/alanrenouf">Alan Renouf</a> and I will be staffing the PowerCLI Drop In Area. We&#8217;re currently finalising the details, but this will likely consist of pre-prepared PowerCLI lab content for you to work through and also an opportunity to ask PowerCLI or PowerShell questions. We&#8217;ll be there throughout the day so there should be plenty of time for us to help you out with them.</p>
<p>Sign up <a href="http://www.myvmug.org/e/in/eid=106">here</a></p>
<p>Look forward to seeing you there <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>This event will feature: </strong></p>
<ul>
<li>Wednesday night pre-event networking reception beginning at 7:00 p.m. at National Motorcycle Museum &#8211; hosted by Veeam Software</li>
<li>Keynote with Joe Baguley &#8211; VMware Chief Cloud Technologist</li>
<li>Exhibitor area with:
<ul>
<li>VMware partners</li>
<li><strong>PowerCLI Drop In Area</strong></li>
<li>Expert Bar</li>
</ul>
</li>
</ul>
<p><strong>Meeting Agenda</strong></p>
<table width="573" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">8:00 AM</td>
<td colspan="4" valign="top">Registration<br />
Breakfast, Mingle with Vendors</td>
</tr>
<tr>
<td valign="top">8:30 &#8211; 9:00 AM</td>
<td colspan="4" valign="top">VMUG Introduction and Wecome from VMUG Steering Committee</td>
</tr>
<tr>
<td valign="top">9:00 -  10:00 AM</td>
<td colspan="4" valign="top">Keynote<br />
Joe Baguley &#8211; VMware Chief Cloud Technologist</td>
</tr>
<tr>
<td valign="top">10:00 &#8211; 10:15 AM</td>
<td colspan="4" valign="top">Break, Mingle with Vendors</td>
</tr>
<tr>
<td rowspan="2" valign="top">10:15 &#8211; 11:00 AM</td>
<td colspan="4" valign="top">Partner Sessions</td>
</tr>
<tr>
<td valign="top">Hitachi Data Systems<br />
Accelerating your Cloud Infrastructure</td>
<td valign="top">Symantec<br />
Backup Exec and VMware: Best Practices</td>
<td valign="top">Xangati<br />
Blame Wars: The VI Admin Strikes Back</td>
<td valign="top">Actifio<br />
Virtualization comes to Data Management</td>
</tr>
<tr>
<td valign="top">11:00 &#8211; 11:15 AM</td>
<td colspan="4" valign="top">Break, Mingle with Vendors</td>
</tr>
<tr>
<td rowspan="2" valign="top">11:15 AM &#8211; 12:00 PM</td>
<td colspan="4" valign="top">Community Sessions</td>
</tr>
<tr>
<td valign="top">Duncan Epping/Frank Denneman &#8211; vSphere 5.0 Clustering Q&amp;A</td>
<td valign="top">Cormac Hogan vSphere 5.0 New Storage Features</td>
<td valign="top">Dan Watson Security in the Virtual World</td>
<td valign="top">Julian Wood  vSphere 4-&gt;5 upgrade</td>
</tr>
<tr>
<td valign="top">12:15 &#8211; 1:00 PM</td>
<td colspan="4" valign="top">Lunch, Mingle with Vendors</td>
</tr>
<tr>
<td rowspan="2" valign="top">1:00 &#8211; 1:45 PM</td>
<td colspan="4" valign="top">Partner Sessions</td>
</tr>
<tr>
<td valign="top">Xsigo<br />
Under the Hood with Virtual I/O Technology, and How VMware Uses It to Do More</td>
<td valign="top">Veeam<br />
Virtualization Data Protection, It’s Not Niche Anymore</td>
<td valign="top">Arista Networks<br />
Integrating Private and Public Clouds with Real World Networks</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">1:45 &#8211; 2:00 PM</td>
<td colspan="4" valign="top">Break, Mingle with Vendors</td>
</tr>
<tr>
<td rowspan="2" valign="top">2:00 &#8211; 2:45 PM</td>
<td colspan="4" valign="top">Community Session</td>
</tr>
<tr>
<td valign="top">Duncan Epping/Frank Denneman &#8211; vSphere 5.0 Clustering Q&amp;A</td>
<td valign="top">Cormac Hogan vSphere 5.0 New Storage Features</td>
<td valign="top">Dan Watson Security in the Virtual World</td>
<td valign="top">Simon Gallagher vTardis</td>
</tr>
<tr>
<td valign="top">2:45 &#8211; 3:00 PM</td>
<td colspan="4" valign="top">Break, Mingle with Vendors</td>
</tr>
<tr>
<td rowspan="2" valign="top">3:00 &#8211; 3:45 PM</td>
<td colspan="4" valign="top">Partner Sessions</td>
</tr>
<tr>
<td valign="top">Coraid<br />
Server Virtualization Demands a New Storage Architecture</td>
<td valign="top">CommVault<br />
Protecting and Managing Data in Growing VMware Environments</td>
<td valign="top">Embotics<br />
Live Demonstration: Transforming Private Cloud Hype to Private Cloud Doing</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">3:45 &#8211; 4:15 PM</td>
<td colspan="4" valign="top">Mike Laverick &#8211; Cloud Journey – Bumps in the Road</td>
</tr>
<tr>
<td valign="top">4:15 &#8211; 4:30 PM</td>
<td colspan="4" valign="top">Wrap-up &amp; Prize Drawing</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/10/powercli-drop-in-area-at-the-uk-national-vmug-november-3rd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerCLI-Man at VMworld Europe</title>
		<link>http://www.jonathanmedd.net/2011/10/powercli-man-at-vmworld-europe.html</link>
		<comments>http://www.jonathanmedd.net/2011/10/powercli-man-at-vmworld-europe.html#comments</comments>
		<pubDate>Wed, 05 Oct 2011 08:10:47 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1945</guid>
		<description><![CDATA[If you are not already aware of the phenomenon that is PowerCLI-Man, well, where have you been? My sources tell me he may be making an appearance at VMworld Europe, so if you are not already going, I highly recommend you attend. In particular I would encourage you to attend VSP1882 or VSP1883 for your [...]]]></description>
			<content:encoded><![CDATA[<p>If you are not already aware of the phenomenon that is PowerCLI-Man, well, where have you been? My sources tell me he may be making an appearance at VMworld Europe, so if you are not already going, I highly recommend you attend. In particular I would encourage you to attend VSP1882 or VSP1883 for your best chance to see him&#8230;&#8230;&#8230;</p>
<p>&nbsp;<br />
<iframe src="http://player.vimeo.com/video/30036778?title=0&amp;byline=0&amp;portrait=0" frameborder="0" width="400" height="225"></iframe></p>
<p><a href="http://vimeo.com/30036778">PowerCLI @ VMworld Europe</a> from <a href="http://vimeo.com/user766954">Alan Renouf</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/10/powercli-man-at-vmworld-europe.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time for a change: Let&#8217;s go!</title>
		<link>http://www.jonathanmedd.net/2011/09/time-for-a-change-lets-go.html</link>
		<comments>http://www.jonathanmedd.net/2011/09/time-for-a-change-lets-go.html#comments</comments>
		<pubDate>Tue, 06 Sep 2011 10:33:21 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1811</guid>
		<description><![CDATA[I have really enjoyed  my time at my current employer, there are some amazingly talented people who work / have worked there during the time I have spent there. However, for various reasons I have decided that it is time to move on and try something different by going freelance contracting. So while I work [...]]]></description>
			<content:encoded><![CDATA[<p>I have really enjoyed  my time at my current employer, there are some amazingly talented people who work / have worked there during the time I have spent there. However, for various reasons I have decided that it is time to move on and try something different by going freelance contracting. So while I work out my notice period I will be looking for a contract as my next opportunity.</p>
<p>Think about hiring me because of the following:</p>
<p><strong>Achievements:</strong></p>
<ul>
<li><a href="http://communities.vmware.com/vexpert.jspa?sortOrder=1&amp;sortField=0&amp;name=medd&amp;location=&amp;description=">VMware vExpert 2011</a></li>
<li><a href="https://mvp.support.microsoft.com/profile/Jonathan.Medd">Microsoft MVP for Windows PowerShell 2010 &amp; 2011</a></li>
<li>Co-author of the <a href="http://www.powerclibook.com/">PowerCLI book</a> (<a href="http://www.amazon.com/gp/product/0470890797?ie=UTF8&amp;tag=jonmedsblo-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470890797">VMware VSphere PowerCLI Reference: Automating VSphere Administration</a>)</li>
</ul>
<p><strong>Key Skills:</strong></p>
<ul>
<li>VMware vSphere 4.1, 4.0 and ESX 3.5 – 4 years</li>
<li>PowerShell / PowerCLI Scripting – 4 years</li>
<li>Windows Server 2008 R2, 2008, 2003, 2000 and NT4(!)  &#8211; 14 years</li>
<li>Citrix XenApp 5.0, 4.5 and 4.0 – 3 years</li>
<li>Active Directory and Exchange Migrations – 14 years</li>
</ul>
<p><strong>Highlight Projects:</strong></p>
<ul>
<li>Virtualising Tier 1 Apps, including Citrix, Exchange, Sharepoint, Active Directory, SQL and SAP bringing significant cost savings and greater flexibility to the business.</li>
<li>Automating virtualised environments with PowerCLI and PowerShell, saving time and money in operational costs.</li>
<li>Moving virtualised environments to new datacentres with little or no downtime.</li>
<li>Migrating through the versions of vSphere, from ESX 3.5 through ESXi 4.1.</li>
<li>Implementing procedures around virtualisation to bring business benefits.</li>
<li>Large scale P2V projects with subsequent big reductions in power, cooling and hardware requirements.</li>
</ul>
<p><strong>Certifications</strong>:</p>
<ul>
<li>VMware Certified Professional (VCP) 4.0 and 3.5</li>
<li>Microsoft MCITP: Enterprise Administrator Windows Server 2008</li>
<li>Microsoft MCSE – Windows 2003, 2000 and NT 4</li>
<li>Citrix Certified Administrator (CCA) for Citrix XenApp5</li>
</ul>
<p>So if you might be interested in taking me on for a contract based on these skills and experience, and the occasional ability to make people laugh, then you can contact me either via:</p>
<p><a href="http://uk.linkedin.com/in/jonathanmedd"><img style="border: 0pt none;" src="http://www.linkedin.com/img/webpromo/btn_myprofile_160x33.png" alt="View Jonathan Medd's profile on LinkedIn" width="160" height="33" border="0" /></a></p>
<p>or</p>
<p><script type="text/javascript" src="http://www.twittermysite.com/mytwitter.js?id=85826&amp;button=15"></script>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/09/time-for-a-change-lets-go.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Download the PowerCLI 5.0 Poster</title>
		<link>http://www.jonathanmedd.net/2011/09/download-the-powercli-5-0-poster.html</link>
		<comments>http://www.jonathanmedd.net/2011/09/download-the-powercli-5-0-poster.html#comments</comments>
		<pubDate>Mon, 05 Sep 2011 19:47:06 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vSphere 5]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1807</guid>
		<description><![CDATA[The PowerCLI team publish very handy reference posters that will sit nicely by your desk and usually release a new version to accompany each product release. vSphere 5 is no different and if you weren&#8217;t lucky enough to attend the recent VMworld and collect a tangible copy then you can now download one to print [...]]]></description>
			<content:encoded><![CDATA[<p>The PowerCLI team publish very handy reference posters that will sit nicely by your desk and usually release a new version to accompany each product release. vSphere 5 is no different and if you weren&#8217;t lucky enough to attend the recent VMworld and collect a tangible copy then you can now <a href="http://blogs.vmware.com/vipowershell/2011/09/powercli-poster-v50.html">download one to print out yourself.</a></p>
<p style="text-align: center;"><a href="http://blogs.vmware.com/vipowershell/2011/09/powercli-poster-v50.html"><img class="aligncenter size-full wp-image-1808" title="PowerCLIPoster" src="http://www.jonathanmedd.net/wp-content/uploads/2011/09/PowerCLIPoster.jpg" alt="" width="644" height="342" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/09/download-the-powercli-5-0-poster.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PowerCLI VIProperties and the VIProperty Module</title>
		<link>http://www.jonathanmedd.net/2011/08/using-powercli-viproperties-and-the-viproperty-module.html</link>
		<comments>http://www.jonathanmedd.net/2011/08/using-powercli-viproperties-and-the-viproperty-module.html#comments</comments>
		<pubDate>Thu, 18 Aug 2011 18:47:44 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1794</guid>
		<description><![CDATA[In PowerShell it is possible to use custom properties for an object if the one you need does not exist by default &#8211; these are known as calculated properties. For instance, in PowerCLI by default there is no ToolsVersion property for a VM, however we can create a calculated property named ToolsVersion and submit an [...]]]></description>
			<content:encoded><![CDATA[<p>In PowerShell it is possible to use custom properties for an object if the one you need does not exist by default &#8211; these are known as <a href="http://technet.microsoft.com/en-us/library/ff730948.aspx">calculated properties</a>.</p>
<p>For instance, in PowerCLI by default there is no ToolsVersion property for a VM, however we can create a calculated property named ToolsVersion and submit an expression to retrieve that data:</p>
<pre class="brush: powershell;">

Get-VM TEST01 | Select-Object Name,@{Name=&quot;ToolsVersion&quot;;Expression={$_.ExtensionData.Config.Tools.ToolsVersion}}
</pre>
<p>However, the ToolsVersion property does not persist after running this command, so if I now try:</p>
<pre class="brush: powershell;">

Get-VM TEST01 | Select-Object Name,ToolsVersion
</pre>
<p>The ToolsVersion is not returned since PowerShell is not aware of that property. I would need to specify the expression again if I wanted to use it.</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/08/ToolsVersion1.png"><img class="aligncenter size-full wp-image-1796" title="ToolsVersion1" src="http://www.jonathanmedd.net/wp-content/uploads/2011/08/ToolsVersion1.png" alt="" width="173" height="59" /></a></p>
<p>PowerCLI 4.1 introduced the new cmdlet <a href="http://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/New-VIProperty.html" target="_blank">New-VIProperty</a> which allows you to create custom properties for an object. However, these properties will persist for the course of the current PowerShell session. Using the same example as above we can create a ToolsVersion property like this:</p>
<pre class="brush: powershell;">

New-VIProperty -Name ToolsVersion -ObjectType VirtualMachine  -ValueFromExtensionProperty 'config.tools.ToolsVersion’ -Force
</pre>
<p>So now I can run this query and this time I will get the results I was hoping for:</p>
<pre class="brush: powershell;">

Get-VM TEST01 | Select-Object Name,ToolsVersion
</pre>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/08/ToolsVersion2.png"><img class="aligncenter size-full wp-image-1798" title="ToolsVersion2" src="http://www.jonathanmedd.net/wp-content/uploads/2011/08/ToolsVersion2.png" alt="" width="171" height="62" /></a></p>
<p>The possibilities for using  <a href="http://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/New-VIProperty.html" target="_blank">New-VIProperty</a> are almost limitless. <a href="http://twitter.com/LucD22/">Luc Dekens</a> has done a great job of collating a large set of community efforts of these on his <a href="http://www.lucd.info/viproperties/">VIProperties page</a> . I have been using them a lot recently, either those already submitted, or creating my own, but was finding it frustrating copy / pasting each one in as and when required.</p>
<p>So instead I decided to put them all into a <a href="http://technet.microsoft.com/en-us/library/dd819458.aspx">PowerShell module</a> so that each of them would be potentially available at any time, simply by importing the module. A <a href="http://technet.microsoft.com/en-us/library/dd819458.aspx">PowerShell module</a> can be as simple as a collection of functions or scripts that are bundled up together and then imported to make them available for use.</p>
<p>I sent this to Luc, he thought it was a good idea too. So after tidying it up a bit, you can now <a href="http://www.lucd.info/2011/08/17/viproperties-in-a-module/">download it from his site</a> . Once downloaded and before unzipping the files, make sure to unblock the content before extracting it, otherwise you will have an issue when importing the module, dependent on your current PowerShell Execution policy:</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/08/UnblockZip.png"><img class="aligncenter size-full wp-image-1799" title="UnblockZip" src="http://www.jonathanmedd.net/wp-content/uploads/2011/08/UnblockZip.png" alt="" width="768" height="614" /></a></p>
<p>Copy the extracted VIProperty folder to your PowerShell modules location &#8211; you can find this with:</p>
<pre class="brush: powershell;">

$env:PSModulePath
</pre>
<p>Now you can make all of those VIProperties available by importing the module:</p>
<pre class="brush: powershell;">

Import-Module -Name VIProperty
</pre>
<p>For instance I could combine some standard (Name, NumCPU) and custom properties (BootDelay,NumVirtualDisks) from the module  in this query:</p>
<pre class="brush: powershell;">

Get-VM Test01 | Select-Object Name,NumCPU,BootDelay,NumVirtualDisks
</pre>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/08/Properties1.png"><img class="aligncenter size-full wp-image-1801" title="Properties1" src="http://www.jonathanmedd.net/wp-content/uploads/2011/08/Properties1.png" alt="" width="323" height="61" /></a></p>
<p>I highly recommend PowerCLI users check this out and please help make the module even more useful by submitting your own custom properties to <a href="http://www.lucd.info/viproperties/">Luc</a> for inclusion.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/08/using-powercli-viproperties-and-the-viproperty-module.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

