<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities : All Content - VMware vSphere™ PowerCLI</title>
    <link>http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit</link>
    <description>All Content in VMware vSphere™ PowerCLI</description>
    <language>en</language>
    <pubDate>Mon, 23 Nov 2009 07:18:20 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-11-23T07:18:20Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Get-Cluster - CPU Usage 95%</title>
      <link>http://communities.vmware.com/message/1423574</link>
      <description>Get-Cluster appears to be an expensive query, on the VC, CPU usage goes as high as 95% (for vmxd.exe) when using get-cluster, otherwise it is fine.&lt;br /&gt;
&lt;br /&gt;
Is there any workaround to avoid this, or an equivalent SDK method ?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Get-VM | %{
   Get-Cluster -vm $_.Name
}
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 23 Nov 2009 07:18:20 GMT</pubDate>
      <author>harkamal</author>
      <guid>http://communities.vmware.com/message/1423574</guid>
      <dc:date>2009-11-23T07:18:20Z</dc:date>
      <clearspace:dateToText>6 hours, 43 minutes ago</clearspace:dateToText>
    </item>
    <item>
      <title>Need a powershell script to collect esx patch info</title>
      <link>http://communities.vmware.com/message/1423573</link>
      <description>This is how you can query patches on esxHosts&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$h = Get-VMHost &amp;lt;host&amp;gt; | Get-View
$h.ConfigManager.PatchManager
$pm = get-view $h.ConfigManager.PatchManager
$pm | gm -MemberType Method Query*
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 23 Nov 2009 07:14:54 GMT</pubDate>
      <author>harkamal</author>
      <guid>http://communities.vmware.com/message/1423573</guid>
      <dc:date>2009-11-23T07:14:54Z</dc:date>
      <clearspace:dateToText>6 hours, 46 minutes ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Historical performance using VI tool kit</title>
      <link>http://communities.vmware.com/message/1423026</link>
      <description>No,I think your script s the standard method for getting historical performance data.&lt;br /&gt;
I would go for exporting the data to a CSV file, but perhaps you have a good reason to use a data table.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">reporting</category>
      <pubDate>Sun, 22 Nov 2009 00:52:43 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1423026</guid>
      <dc:date>2009-11-22T00:52:43Z</dc:date>
      <clearspace:dateToText>1 day, 13 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Question about Get-View</title>
      <link>http://communities.vmware.com/message/1422981</link>
      <description>Thanks</description>
      <pubDate>Sat, 21 Nov 2009 21:36:18 GMT</pubDate>
      <author>AGFlora</author>
      <guid>http://communities.vmware.com/message/1422981</guid>
      <dc:date>2009-11-21T21:36:18Z</dc:date>
      <clearspace:dateToText>1 day, 16 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Relating Disk partitions to vmdk files</title>
      <link>http://communities.vmware.com/message/1423005</link>
      <description>Check out &lt;a class="jive-link-external" href="http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/"&gt;http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/&lt;/a&gt;.</description>
      <pubDate>Sat, 21 Nov 2009 20:49:29 GMT</pubDate>
      <author>notorious_bdg</author>
      <guid>http://communities.vmware.com/message/1423005</guid>
      <dc:date>2009-11-21T20:49:29Z</dc:date>
      <clearspace:dateToText>1 day, 17 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>extend a vmdk\windows hard drive via powershell</title>
      <link>http://communities.vmware.com/message/1422904</link>
      <description>Check out Set-HardDisk in PowerCLI 4.0 U1, it contains a feature to do exactly this. It requires a helper VM and the VM being resized needs to be powered off. I'd be interested to hear your feedback.&lt;br /&gt;
&lt;br /&gt;
=====&lt;br /&gt;
Carter Shanklin&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blogs.vmware.com/vipowershell"&gt;Read the PowerCLI Blog&lt;/a&gt;&lt;br&gt;&lt;a class="jive-link-external" href="http://twitter.com/cshanklin"&gt;Follow me on Twitter&lt;/a&gt;</description>
      <pubDate>Sat, 21 Nov 2009 17:59:24 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1422904</guid>
      <dc:date>2009-11-21T17:59:24Z</dc:date>
      <clearspace:dateToText>1 day, 20 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Help with few steps in Post configuration of esx4i server</title>
      <link>http://communities.vmware.com/message/1422856</link>
      <description>I was connected directly to ESX, in which case you don't need to specify a VMhost parameter. If you connect to vCenter you always do, even if you only have one ESX host.&lt;br /&gt;
&lt;br /&gt;
=====&lt;br /&gt;
Carter Shanklin&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blogs.vmware.com/vipowershell"&gt;Read the PowerCLI Blog&lt;/a&gt;&lt;br&gt;&lt;a class="jive-link-external" href="http://twitter.com/cshanklin"&gt;Follow me on Twitter&lt;/a&gt;</description>
      <pubDate>Sat, 21 Nov 2009 15:32:08 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1422856</guid>
      <dc:date>2009-11-21T15:32:08Z</dc:date>
      <clearspace:dateToText>1 day, 22 hours ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>Getting Cluster Name of VM</title>
      <link>http://communities.vmware.com/message/1422637</link>
      <description>Thanks LucD....perfect!</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">c#</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">cluster</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">cluster_name</category>
      <pubDate>Sat, 21 Nov 2009 01:44:50 GMT</pubDate>
      <author>VirtualMonster35</author>
      <guid>http://communities.vmware.com/message/1422637</guid>
      <dc:date>2009-11-21T01:44:50Z</dc:date>
      <clearspace:dateToText>2 days, 12 hours ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Create alarm "Lost Network Redundancy" by script?</title>
      <link>http://communities.vmware.com/message/1422158</link>
      <description>I don't have a particular fancy script with parameters and everything else but I can show you the steps needed to filter the alarms by name and delete the desired one.&lt;br /&gt;
&lt;br /&gt;
#retrieve alarm manager&lt;br /&gt;
$alarmManager = Get-View -Id 'AlarmManager-AlarmManager' &lt;br /&gt;
&lt;br /&gt;
#Get the entity which contains the alarm you want to delete. I'll do it for a Vm&lt;br /&gt;
$entityView = Get-Vm -Name MyVm | Get-View&lt;br /&gt;
&lt;br /&gt;
#get all alarm MoRefs&lt;br /&gt;
$alarmMoRefList = $alarmManager.GetAlarm($entityView.MoRef)&lt;br /&gt;
&lt;br /&gt;
#Retrieve tha alarm views from the MoRefs&lt;br /&gt;
$alarmViewList = $alarmMoRefList | foreach { Get-View $_}&lt;br /&gt;
&lt;br /&gt;
#Now filter the alrams by name&lt;br /&gt;
$alarmToDelete = $alarmViewList | where {$_.Info.Name -eq "AlarmToDelete"}&lt;br /&gt;
&lt;br /&gt;
#Finally delete the alarms&lt;br /&gt;
$alarmToDelete.RemoveAlarm()&lt;br /&gt;
&lt;br /&gt;
It shouldn't be to hard to put it in a reussable function or a script. If you have troubles with that I'll be happy to help again!</description>
      <pubDate>Fri, 20 Nov 2009 15:33:54 GMT</pubDate>
      <author>yboychev</author>
      <guid>http://communities.vmware.com/message/1422158</guid>
      <dc:date>2009-11-20T15:33:54Z</dc:date>
      <clearspace:dateToText>2 days, 22 hours ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Get-stat counter not available</title>
      <link>http://communities.vmware.com/message/1421947</link>
      <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
The problem that was causing errors to be thrown for some of the metrics was addressed in the newly released version of PowerCLI - 4.0 Update 1. Give it a try and I'll be happy to get further feedback in case you still experience some problems in the specified cases!&lt;br /&gt;
&lt;br /&gt;
\Yavor</description>
      <pubDate>Fri, 20 Nov 2009 09:34:05 GMT</pubDate>
      <author>yboychev</author>
      <guid>http://communities.vmware.com/message/1421947</guid>
      <dc:date>2009-11-20T09:34:05Z</dc:date>
      <clearspace:dateToText>3 days, 4 hours ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Get-Stat script help</title>
      <link>http://communities.vmware.com/message/1421956</link>
      <description>Thanks Yavor, will try them out asap.</description>
      <pubDate>Fri, 20 Nov 2009 09:32:20 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1421956</guid>
      <dc:date>2009-11-20T09:32:20Z</dc:date>
      <clearspace:dateToText>3 days, 4 hours ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>set-oscustomizationspec and IP address</title>
      <link>http://communities.vmware.com/message/1421955</link>
      <description>Thanks Yavor, I will try them out.&lt;br /&gt;
Can't wait to see to the demo(s0.</description>
      <pubDate>Fri, 20 Nov 2009 09:31:23 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1421955</guid>
      <dc:date>2009-11-20T09:31:23Z</dc:date>
      <clearspace:dateToText>3 days, 4 hours ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>vSphere PowerCLI 4.0 Update 1 Cmdlet Reference</title>
      <link>http://communities.vmware.com/docs/DOC-11350</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2530">vitoolkit</category>
      <pubDate>Fri, 20 Nov 2009 08:59:10 GMT</pubDate>
      <author>Mariana Zdravkova</author>
      <guid>http://communities.vmware.com/docs/DOC-11350</guid>
      <dc:date>2009-11-20T08:59:10Z</dc:date>
      <clearspace:dateToText>3 days, 4 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>logic in powershell script</title>
      <link>http://communities.vmware.com/message/1421924</link>
      <description>&lt;br /&gt;
Hi Rob and all,&lt;br /&gt;
&lt;p /&gt;
Just want to mension that the newly released PowerCLI 4.0 Update 1 supports virtual machine cloning with the New-Vm cmdlet using the -Vm parameter! For more info see the examples provided in the help for New-Vm cmdlet! Enjoy it!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
\Yavor</description>
      <pubDate>Fri, 20 Nov 2009 08:48:32 GMT</pubDate>
      <author>yboychev</author>
      <guid>http://communities.vmware.com/message/1421924</guid>
      <dc:date>2009-11-20T08:48:32Z</dc:date>
      <clearspace:dateToText>3 days, 5 hours ago</clearspace:dateToText>
      <clearspace:replyCount>18</clearspace:replyCount>
    </item>
    <item>
      <title>related bugs in set-vmhostnetwork and set-vmhostnetworkadapter</title>
      <link>http://communities.vmware.com/message/1421923</link>
      <description>&lt;br /&gt;
Hi Hal and all,&lt;br /&gt;
&lt;p /&gt;
 Just want to mention that the described  problem is now resolved with the newly released PowerCLI4.0 Update 1. &lt;br /&gt;
&lt;p /&gt;
Get-VmHostNetworkAdapter cmdlet is now implemented and it has -Console, -Physical and VmKernel switches that will do the work. Enjoy it!&lt;br /&gt;
&lt;p /&gt;
\Yavor</description>
      <pubDate>Fri, 20 Nov 2009 08:42:51 GMT</pubDate>
      <author>yboychev</author>
      <guid>http://communities.vmware.com/message/1421923</guid>
      <dc:date>2009-11-20T08:42:51Z</dc:date>
      <clearspace:dateToText>3 days, 5 hours ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Datastore and Controller Report</title>
      <link>http://communities.vmware.com/message/1421492</link>
      <description>&lt;br /&gt;
thanks for the quick response, i'm actually exporting it to htm.&lt;br /&gt;
&lt;p /&gt;
trying to simplify it down to the below example: &lt;br /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Datastore&lt;/th&gt;
&lt;th&gt;Total Disks combined (Gb)&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server1&lt;/td&gt;
&lt;td&gt;VF2DS06&lt;/td&gt;
&lt;td&gt;29.00&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;
&lt;p /&gt;</description>
      <pubDate>Thu, 19 Nov 2009 19:42:33 GMT</pubDate>
      <author>monderick</author>
      <guid>http://communities.vmware.com/message/1421492</guid>
      <dc:date>2009-11-19T19:42:33Z</dc:date>
      <clearspace:dateToText>3 days, 18 hours ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Tasks Status ...</title>
      <link>http://communities.vmware.com/message/1421301</link>
      <description>&lt;br /&gt;
Thanks for your reply. I'll will try this and keep you aware. &lt;br /&gt;
&lt;p /&gt;
Thanks again !&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Lucien.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 19 Nov 2009 17:01:58 GMT</pubDate>
      <author>vZedification</author>
      <guid>http://communities.vmware.com/message/1421301</guid>
      <dc:date>2009-11-19T17:01:58Z</dc:date>
      <clearspace:dateToText>3 days, 20 hours ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Get a VM's IP address? (when DNS not available)</title>
      <link>http://communities.vmware.com/message/1421316</link>
      <description>Thanks (I think) &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;&lt;br /&gt;
&lt;br /&gt;
You don't have to use the hostname nor IP address for the Invoke-VMScript cmdlet.&lt;br /&gt;
You do that against the object that is returned by Get-VM&lt;br /&gt;
Like this:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Invoke-VMScript -VM (Get-VM Server1) -ScriptText &amp;quot;ipconfig&amp;quot; -HostUser &amp;lt;host-account&amp;gt; -HostPassword &amp;lt;host-password&amp;gt; -GuestUser &amp;lt;guest-user&amp;gt; -GuestPassword &amp;lt;guest-password&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Btw the solution Alan proposed is valid provided you have the VMware Tools installed and running.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vsphere_powercli</category>
      <pubDate>Thu, 19 Nov 2009 16:45:57 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1421316</guid>
      <dc:date>2009-11-19T16:45:57Z</dc:date>
      <clearspace:dateToText>3 days, 21 hours ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>find slider bar setting in DRS fully automated mode on cluster</title>
      <link>http://communities.vmware.com/message/1421307</link>
      <description>Although you can use the &lt;b&gt;Set-Cluster&lt;/b&gt; cmdlet to change the DRS Automation level (with the &lt;b&gt;-DrsAutomationLevel&lt;/b&gt; parameter) you can't change the vmmotionRate number.&lt;br /&gt;
For that you will have to fall back on the SDK method called &lt;a class="jive-link-external" href="http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ComputeResource.html#reconfigureEx"&gt;ReconfigureComputeResource&lt;/a&gt;.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$clus = get-cluster &amp;quot;clus1&amp;quot; | get-view
$spec = New-Object VMware.Vim.ClusterConfigSpecEx
$spec.drsConfig = New-Object VMware.Vim.ClusterDrsConfigInfo
# 1 : aggressive
# 5 : conservative
$spec.drsConfig.vmotionRate = 5

$clus.ReconfigureComputeResource($spec, $true)
&lt;/code&gt;&lt;/pre&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">cluster</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">report</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">script</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">toolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vitoolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vi_toolkit_windows</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">drs</category>
      <pubDate>Thu, 19 Nov 2009 16:40:05 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1421307</guid>
      <dc:date>2009-11-19T16:40:05Z</dc:date>
      <clearspace:dateToText>3 days, 21 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Enable Mount and resignature of  snap luns on vSphere</title>
      <link>http://communities.vmware.com/message/1421262</link>
      <description>Hi.&lt;br /&gt;
Re-Signature happens automatically. The DataStore will appear with snap-xxxxxx-&amp;lt;datastorename&amp;gt; where xxxxx is a random set of chars, you don't define the new name yourself.. &lt;br /&gt;
&lt;br /&gt;
To enable Resig and try the following from the service console of the ESX host : &lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
1. esxcfg-advcfg --get /LVM/EnableResignature It should be set to 0 - Resignaturing is OFF&lt;br /&gt;
&lt;br /&gt;
2. Now set it to on.&lt;br /&gt;
esxcfg-advcfg -s 1 /LVM/EnableResignature&lt;br /&gt;
&lt;br /&gt;
3. Issue a "refresh" in VI client storage view and the snapshot Luns of the same source LUN get re-signatured simultaneously:&lt;br /&gt;
&lt;br /&gt;
4. Reset the enableResignature option:&lt;br /&gt;
esxcfg-advcfg -s 0 /LVM/EnableResignature&lt;br /&gt;
&lt;br /&gt;
Thanks to Darragh Connolly for assistance with this issue. &lt;br /&gt;
&lt;br /&gt;
Let me know how you get on. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
TG</description>
      <pubDate>Thu, 19 Nov 2009 16:14:35 GMT</pubDate>
      <author>tonygent</author>
      <guid>http://communities.vmware.com/message/1421262</guid>
      <dc:date>2009-11-19T16:14:35Z</dc:date>
      <clearspace:dateToText>3 days, 21 hours ago</clearspace:dateToText>
      <clearspace:replyCount>18</clearspace:replyCount>
    </item>
    <item>
      <title>Need to report VM path and Full path of .vmx file using friendly LUN ID</title>
      <link>http://communities.vmware.com/message/1421000</link>
      <description>Yes this is what I was looking for thanks. I still get that "Cannot index into a null array" error  when I try to add annotations(customFields) to this script?&lt;br /&gt;
&lt;br /&gt;
Note: () = brackets because this site doesn't like brackets...&lt;br /&gt;
&lt;br /&gt;
$_.Name.CustomFields("Bar Code")&lt;br /&gt;
&lt;br /&gt;
Should I have something like:&lt;br /&gt;
&lt;br /&gt;
$Vms = Get-VM | Get-View  | % (&lt;br /&gt;
 foreach($vm in $vms)&lt;br /&gt;
   $vm.CustomFields("Bar Code")&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
      <pubDate>Thu, 19 Nov 2009 10:51:31 GMT</pubDate>
      <author>AGFlora</author>
      <guid>http://communities.vmware.com/message/1421000</guid>
      <dc:date>2009-11-19T10:51:31Z</dc:date>
      <clearspace:dateToText>4 days, 3 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Copying VM or Templates from one datastore to another</title>
      <link>http://communities.vmware.com/message/1420967</link>
      <description>I have two VMFS datastores.  One can be seen by the students and one cannot, it is masked so that only the management ESX hosts can see it.  I need to deploy 16 VMs from a particular template onto the student servers and it is much quicker to deploy them from a datastore the student servers can see than one they can't.  The problem is that either the students or instructors could inadvertantly delete the template, so what I wanted to do was run a check on the SharedTMPLs datastore to ensure that the template was in place before registering it and deploying the VMs and if not, transfer a copy of it from the secure datastore before registration and deployment. The vCenter I am running this via, can see both datastores.</description>
      <pubDate>Thu, 19 Nov 2009 09:38:52 GMT</pubDate>
      <author>alasdair.carnie</author>
      <guid>http://communities.vmware.com/message/1420967</guid>
      <dc:date>2009-11-19T09:38:52Z</dc:date>
      <clearspace:dateToText>4 days, 4 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>VM disk usage and datastore report</title>
      <link>http://communities.vmware.com/message/1420840</link>
      <description>OK so here is what I think works so far:&lt;br /&gt;
&lt;br /&gt;
Connect-VIServer vc&lt;br /&gt;
Get-Cluster  'cluster'| Get-VM | Where { $_.PowerState -eq "PoweredOn" } | Get-VMGuest | Select VmName -ExpandProperty Disks | Export-Csv c:\reports\storreport.csv&lt;br /&gt;
&lt;br /&gt;
So how can I round the answer for capacity and free space to where capacity = "x"GB and free space can display "X.XX" GBs?&lt;br /&gt;
&lt;br /&gt;
Also can I show what percentage of the disk is being used and the VMFS datastore?</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">storage_report</category>
      <pubDate>Thu, 19 Nov 2009 04:42:44 GMT</pubDate>
      <author>kwharrisit</author>
      <guid>http://communities.vmware.com/message/1420840</guid>
      <dc:date>2009-11-19T04:42:44Z</dc:date>
      <clearspace:dateToText>4 days, 9 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>SearchDatastoreSubFolders + GetVersion Question</title>
      <link>http://communities.vmware.com/message/1420412</link>
      <description>Thank you; this works.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">searchdatastoresubfolders</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get_version</category>
      <pubDate>Wed, 18 Nov 2009 18:02:45 GMT</pubDate>
      <author>Sirry</author>
      <guid>http://communities.vmware.com/message/1420412</guid>
      <dc:date>2009-11-18T18:02:45Z</dc:date>
      <clearspace:dateToText>4 days, 19 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>background jobs with VMware.VimAutomation.Core</title>
      <link>http://communities.vmware.com/message/1420292</link>
      <description>I have the same problem.  What is interesting is that on a Win 7 machine it works correctly.  If I run the following:&lt;br /&gt;
&lt;br /&gt;
start-job {add-pssnapin vmware.vimautomation.core ; get-pssnapin ;Connect-VIServer -server myserver  -user myuser -password mypassword ; echo "Success"  ;get-vm|echo}&lt;br /&gt;
&lt;br /&gt;
I get the expected output when I receive-job xx on the Win 7 machine.  On my XP SP3 machine, the job.state stays "running" for hours before eventually erroring out. &lt;br /&gt;
&lt;br /&gt;
Both machines have Powershell 2.0 with the PowerCLI from VMware-Vim4PS-4.0.0-162509.exe.</description>
      <pubDate>Wed, 18 Nov 2009 15:56:05 GMT</pubDate>
      <author>pathitt</author>
      <guid>http://communities.vmware.com/message/1420292</guid>
      <dc:date>2009-11-18T15:56:05Z</dc:date>
      <clearspace:dateToText>4 days, 22 hours ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Help with vswitch active/standby vmnic configuration</title>
      <link>http://communities.vmware.com/message/1419753</link>
      <description>Thank you LucD.  I would have waited myself but I just got an order to deploy 16 esx4i hosts into production so .... &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
Your script worked great.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Alex&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
P.S. I just read your blog entry about Onyx and agree 100%.  back to SDK and Hal's book &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Wed, 18 Nov 2009 02:27:17 GMT</pubDate>
      <author>kalex</author>
      <guid>http://communities.vmware.com/message/1419753</guid>
      <dc:date>2009-11-18T02:27:17Z</dc:date>
      <clearspace:dateToText>5 days, 9 hours ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Stagger VM startups get-vm -Name server1 | start-vm</title>
      <link>http://communities.vmware.com/message/1419758</link>
      <description>Based on the script to start VMs will this now shutdown VMs in the same manner? Please note I am using the first ESX host as DR stopping VMs then connect to the Prod ESX host server to then start the production VM's up again.&lt;br /&gt;
&lt;br /&gt;
add-pssnapin VMware.VimAutomation.Core&lt;br /&gt;
connect-viserver -server &lt;b&gt;ESXSERVER01&lt;/b&gt; -user root -password password&lt;br /&gt;
&lt;br /&gt;
$vms = @( "server1", "server2", "server3")&lt;br /&gt;
foreach($vm in $vms) {&lt;br /&gt;
	write-host "Stoping $vm ..."&lt;br /&gt;
	get-vm -Name $vm | stop-vm&lt;br /&gt;
	while ( ( get-vmguest -vm $vm ).State -ne "running" ) { start-sleep 20 }	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
connect-viserver -server &lt;b&gt;ESXSERVER02&lt;/b&gt; -user root -password password&lt;br /&gt;
&lt;br /&gt;
$vms = @( "server1", "server2", "server3")&lt;br /&gt;
foreach($vm in $vms) {&lt;br /&gt;
	write-host "Starting $vm ..."&lt;br /&gt;
	get-vm -Name $vm | start-vm&lt;br /&gt;
	while ( ( get-vmguest -vm $vm ).State -ne "running" ) { start-sleep 20 }	&lt;br /&gt;
}</description>
      <pubDate>Wed, 18 Nov 2009 02:55:54 GMT</pubDate>
      <author>teddyboy</author>
      <guid>http://communities.vmware.com/message/1419758</guid>
      <dc:date>2009-11-18T02:55:54Z</dc:date>
      <clearspace:dateToText>5 days, 11 hours ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Copy files (vmx) , how to script it ??</title>
      <link>http://communities.vmware.com/message/1418997</link>
      <description>Hi Luc,&lt;br /&gt;
&lt;br /&gt;
Could this be adapted to check for the exsistance of a VM or Template and if it does not exist then copy the VM or Template from one datastore to another?&lt;br /&gt;
&lt;br /&gt;
I am storing my templates in a datastore that cannot be seen by my students ESX hosts, but I need to deploy lots of VMs from this template to the student servers.  At the moment I am manually copying the VM Template from the protected Datastore to one the students can see and then running a powershell script to register the template, add the student ESX hosts to a vCenter and then deploy 16 VMs (two onto each host).  I'd like to store a copy of the VM Template on the public store, but be able to check that it is there before trying to deploy the VMs, in case a student has deleted the template by mistake.&lt;br /&gt;
&lt;br /&gt;
I tried just deploying the template from the protected datastore, but the performance is really bad.  Any help would be appreciated.</description>
      <pubDate>Tue, 17 Nov 2009 12:20:50 GMT</pubDate>
      <author>alasdair.carnie</author>
      <guid>http://communities.vmware.com/message/1418997</guid>
      <dc:date>2009-11-17T12:20:50Z</dc:date>
      <clearspace:dateToText>6 days, 1 hour ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
    </item>
    <item>
      <title>All blue folders do not show in report</title>
      <link>http://communities.vmware.com/message/1418668</link>
      <description>Thanks Luc... You're the best!</description>
      <pubDate>Tue, 17 Nov 2009 01:24:33 GMT</pubDate>
      <author>AGFlora</author>
      <guid>http://communities.vmware.com/message/1418668</guid>
      <dc:date>2009-11-17T01:24:33Z</dc:date>
      <clearspace:dateToText>6 days, 12 hours ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
    </item>
    <item>
      <title>Pro grammatically deploying a virtual machine to Data Center A from a template in Data Center B</title>
      <link>http://communities.vmware.com/message/1418601</link>
      <description>Well, this is embarrassing.  After I had posted this code snippet, I went back and did some more testing.  I found that one of the references - the storage - had some transposed characters in the database.  The incorrect value referred to a storage device on the wrong data center.  So, all in all, the error message was absolutely correct.  After I fixed the data error, the Clone method call worked just like it does when called via the VI Client.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">clone</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">data_center</category>
      <pubDate>Mon, 16 Nov 2009 23:24:00 GMT</pubDate>
      <author>jswager1</author>
      <guid>http://communities.vmware.com/message/1418601</guid>
      <dc:date>2009-11-16T23:24:00Z</dc:date>
      <clearspace:dateToText>6 days, 14 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Set Default CPU Masking options</title>
      <link>http://communities.vmware.com/message/1418566</link>
      <description>&lt;br /&gt;
Using the Alpha of Project Onyx, I was able to get the answer I was looking for using the following:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Function Reset-VMCPUMask ($vm) {&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;$vmspec = New-Object VMware.Vim.VirtualMachineConfigSpec &lt;br clear="all" /&gt; $vmspec.files = New-Object VMware.Vim.VirtualMachineFileInfo &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask = New-Object VMware.Vim.VirtualMachineCpuIdInfoSpec[] (4) &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[0] = New-Object VMware.Vim.VirtualMachineCpuIdInfoSpec &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[0].operation = "remove" &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[0].info = New-Object VMware.Vim.HostCpuIdInfo &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[0].info.level = 1&lt;/blockquote&gt;
&lt;blockquote&gt;$vmspec.cpuFeatureMask[1] = New-Object VMware.Vim.VirtualMachineCpuIdInfoSpec &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[1].operation = "remove" &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[1].info = New-Object VMware.Vim.HostCpuIdInfo &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[1].info.level = 1 &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[1].info.vendor = "amd"&lt;/blockquote&gt;
&lt;blockquote&gt;$vmspec.cpuFeatureMask[2] = New-Object VMware.Vim.VirtualMachineCpuIdInfoSpec &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[2].operation = "remove" &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[2].info = New-Object VMware.Vim.HostCpuIdInfo &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[2].info.level = -2147483647&lt;/blockquote&gt;
&lt;blockquote&gt;$vmspec.cpuFeatureMask[3] = New-Object VMware.Vim.VirtualMachineCpuIdInfoSpec &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[3].operation = "remove" &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[3].info = New-Object VMware.Vim.HostCpuIdInfo &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[3].info.level = -2147483647 &lt;br clear="all" /&gt; $vmspec.cpuFeatureMask[3].info.vendor = "amd"&lt;/blockquote&gt;
&lt;blockquote&gt;$vmView = Get-View -Id $vm.id &lt;br clear="all" /&gt; $vmView.ReconfigVM_Task($vmspec)&lt;/blockquote&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Reset-VMCPUMask (get-vm vmname)&lt;br /&gt;
&lt;p /&gt;
This seems to have the same effect of clicking "Reset All to Default" under the CPU Identification Mask Advanced settings.</description>
      <pubDate>Mon, 16 Nov 2009 22:28:36 GMT</pubDate>
      <author>nicad449</author>
      <guid>http://communities.vmware.com/message/1418566</guid>
      <dc:date>2009-11-16T22:28:36Z</dc:date>
      <clearspace:dateToText>6 days, 15 hours ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Remove a vmnic from a VirtualSwitch</title>
      <link>http://communities.vmware.com/message/1418265</link>
      <description>Waiting for next release of vSphere PowerCLI for resolution.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">set-virtualswitch</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">nic</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <pubDate>Mon, 16 Nov 2009 17:15:48 GMT</pubDate>
      <author>IMMatt</author>
      <guid>http://communities.vmware.com/message/1418265</guid>
      <dc:date>2009-11-16T17:15:48Z</dc:date>
      <clearspace:dateToText>6 days, 20 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Unregistering VMs</title>
      <link>http://communities.vmware.com/message/1418010</link>
      <description>Hi Alan,&lt;br /&gt;
&lt;br /&gt;
Sorry, I forget about the Remove-VM cmdlet.  Thanks for the function though, it's better than my cobbled together effort.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&lt;br /&gt;
Alasdair..........</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">unregistered</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">templates</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vcenter</category>
      <pubDate>Mon, 16 Nov 2009 13:02:26 GMT</pubDate>
      <author>alasdair.carnie</author>
      <guid>http://communities.vmware.com/message/1418010</guid>
      <dc:date>2009-11-16T13:02:26Z</dc:date>
      <clearspace:dateToText>1 week, 59 minutes ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>reset sensors</title>
      <link>http://communities.vmware.com/message/1417988</link>
      <description>&lt;br /&gt;
HI Yasen,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
That was exactly what i was looking for. Thanks!</description>
      <pubDate>Mon, 16 Nov 2009 12:58:34 GMT</pubDate>
      <author>RobMokkink</author>
      <guid>http://communities.vmware.com/message/1417988</guid>
      <dc:date>2009-11-16T12:58:34Z</dc:date>
      <clearspace:dateToText>1 week, 1 hour ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>ESX Install Kit</title>
      <link>http://communities.vmware.com/docs/DOC-10814</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2530">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vm</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vmware</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vitoolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">script</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">toolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vi_toolkit_windows</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">deployment</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">factory</category>
      <pubDate>Thu, 24 Sep 2009 13:42:26 GMT</pubDate>
      <author>phsym</author>
      <guid>http://communities.vmware.com/docs/DOC-10814</guid>
      <dc:date>2009-09-24T13:42:26Z</dc:date>
      <clearspace:dateToText>1 week, 19 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>help with vmkernel route scripting</title>
      <link>http://communities.vmware.com/message/1417544</link>
      <description>LucD - Thank you for explanation. makes perfect sense and makes my life easier &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Sun, 15 Nov 2009 07:56:39 GMT</pubDate>
      <author>kalex</author>
      <guid>http://communities.vmware.com/message/1417544</guid>
      <dc:date>2009-11-15T07:56:39Z</dc:date>
      <clearspace:dateToText>1 week, 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Set-NetworkAdapter</title>
      <link>http://communities.vmware.com/message/1416989</link>
      <description>Disconnect:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Get-VM DR* | Get-NetworkAdapter | Set-NetworkAdapter -connected:$false
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Just switch $false to $true to reconnect.&lt;br /&gt;
&lt;br /&gt;
=====&lt;br /&gt;
Carter Shanklin&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blogs.vmware.com/vipowershell"&gt;Read the PowerCLI Blog&lt;/a&gt;&lt;br&gt;&lt;a class="jive-link-external" href="http://twitter.com/cshanklin"&gt;Follow me on Twitter&lt;/a&gt;</description>
      <pubDate>Fri, 13 Nov 2009 21:43:48 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1416989</guid>
      <dc:date>2009-11-13T21:43:48Z</dc:date>
      <clearspace:dateToText>1 week, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Test whether a variable has anything in it so a script can continue - if($var1 -gt 0)</title>
      <link>http://communities.vmware.com/message/1416522</link>
      <description>alanrenouf, exactly what I was after, thanks so much for the quick response.&lt;br /&gt;
&lt;br /&gt;
Dan</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vi_toolkit_windows</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vitoolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vmware</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">toolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">script</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vm</category>
      <pubDate>Fri, 13 Nov 2009 14:42:34 GMT</pubDate>
      <author>a2alpha</author>
      <guid>http://communities.vmware.com/message/1416522</guid>
      <dc:date>2009-11-13T14:42:34Z</dc:date>
      <clearspace:dateToText>1 week, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>help enhancing existing script</title>
      <link>http://communities.vmware.com/message/1415999</link>
      <description>That is perfect. Thanks!</description>
      <pubDate>Fri, 13 Nov 2009 00:09:11 GMT</pubDate>
      <author>rg01</author>
      <guid>http://communities.vmware.com/message/1415999</guid>
      <dc:date>2009-11-13T00:09:11Z</dc:date>
      <clearspace:dateToText>1 week, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Script Powershell to clone a VM</title>
      <link>http://communities.vmware.com/message/1415727</link>
      <description>&lt;div class="jive-quote"&gt;&lt;span class="jive-quote-header"&gt;LucD wrote:&lt;/span&gt;&lt;br /&gt;
Also  be aware that your cloned guest will have the same SID as the original (provided you have a WIndows OS running on the guest of course).&lt;/div&gt;
&lt;br /&gt;
This thread has helped me a ton.&lt;br /&gt;
&lt;br /&gt;
However, the above quoted text from LucD....I am at a point i do want to customize my VM's during these cloning processes, however i cannot seem to figure out how to invoke the customization wizard via PowerCLI.&lt;br /&gt;
&lt;p /&gt;
Any help will be appreciated.</description>
      <pubDate>Thu, 12 Nov 2009 19:43:15 GMT</pubDate>
      <author>AdamMiller</author>
      <guid>http://communities.vmware.com/message/1415727</guid>
      <dc:date>2009-11-12T19:43:15Z</dc:date>
      <clearspace:dateToText>1 week, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Need a powershell Script to copy a RPM into ESX server and perform a -ivh</title>
      <link>http://communities.vmware.com/message/1415650</link>
      <description>Thanks a lot for your scripts. I will use it and update you in a day or two.</description>
      <pubDate>Thu, 12 Nov 2009 18:58:47 GMT</pubDate>
      <author>Sureshadmin</author>
      <guid>http://communities.vmware.com/message/1415650</guid>
      <dc:date>2009-11-12T18:58:47Z</dc:date>
      <clearspace:dateToText>1 week, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Omitting VM's associated with DRS Rules</title>
      <link>http://communities.vmware.com/message/1415335</link>
      <description>I have a copy of the original post if you would like me to repost.  LOL.  That worked, thank you.  Knew it was something stupid.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
K. Chris Nakagaki (Zsoldier)&lt;br /&gt;
&lt;a class="jive-link-external" href="http://tech.zsoldier.com"&gt;http://tech.zsoldier.com&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <pubDate>Thu, 12 Nov 2009 13:55:59 GMT</pubDate>
      <author>Zsoldier</author>
      <guid>http://communities.vmware.com/message/1415335</guid>
      <dc:date>2009-11-12T13:55:59Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Way to report on Orphaned .VMDK files</title>
      <link>http://communities.vmware.com/message/1415169</link>
      <description>Yes, see Yasen's reply in  &lt;a href="http://communities.vmware.com/message/1321939#1321939" class="jive-link-message"&gt;Way to report on Orphaned .VMDK files&lt;/a&gt;</description>
      <pubDate>Thu, 12 Nov 2009 09:01:32 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1415169</guid>
      <dc:date>2009-11-12T09:01:32Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>26</clearspace:replyCount>
    </item>
    <item>
      <title>How to Increase Video RAM</title>
      <link>http://communities.vmware.com/message/1415113</link>
      <description>You can use the following script.&lt;br /&gt;
It changes the video Ram to support a 2560 x 2048 resolution.&lt;br /&gt;
I used &lt;a class="jive-link-external" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;#38;cmd=displayKC&amp;#38;externalId=1003"&gt;KB1003&lt;/a&gt; for the formula.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$vmName = &amp;lt;VM-name&amp;gt;
$vm = Get-VM $vmName | Get-View

$width = 2560
$height = 2048

$videoRam = $width * $height * 4

$dev = $vm.Config.Hardware.Device | where {$_.GetType().Name -eq &amp;quot;VirtualMachineVideoCard&amp;quot;}
	
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$devConfig = New-Object VMware.Vim.VirtualDeviceConfigSpec
$devConfig.device = $dev
$devConfig.device.videoRamSizeInKB = $videoRam/1KB
$devConfig.operation = &amp;quot;edit&amp;quot;
$spec.deviceChange += $devConfig

$vm.ReconfigVM($spec)
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Note1: the script could be extended by a test to check if the new video ramsize was less than 4MB (which is the default size)&lt;br /&gt;
In that case there is no need to change the value.&lt;br /&gt;
Note2: you can't use the ReconfigVM method with the extraconfig property. If there is a method available to change a specific VMX entry (svga.vramSize in this case) then that method is not available.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vm</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">config</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">filesystem</category>
      <pubDate>Thu, 12 Nov 2009 07:08:07 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1415113</guid>
      <dc:date>2009-11-12T07:08:07Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Storage vmotion all vms resident on one datastore to another datastore</title>
      <link>http://communities.vmware.com/message/1414901</link>
      <description>Thanks Alan &lt;img src="!" alt="!" class="jive-image"  /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 00:04:31 GMT</pubDate>
      <author>jssidhu71</author>
      <guid>http://communities.vmware.com/message/1414901</guid>
      <dc:date>2009-11-12T00:04:31Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Connect-VIServer causing two sessions</title>
      <link>http://communities.vmware.com/message/1414855</link>
      <description>I tried this, but it's the same problem.</description>
      <pubDate>Wed, 11 Nov 2009 22:49:32 GMT</pubDate>
      <author>abarilla</author>
      <guid>http://communities.vmware.com/message/1414855</guid>
      <dc:date>2009-11-11T22:49:32Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Create alarms by script?</title>
      <link>http://communities.vmware.com/message/1414793</link>
      <description>After some further investigation it looks as if the previous problem with the settings was not my script but apparently the vSphere client.&lt;br /&gt;
Have a look at  &lt;a class="jive-link-external" href="http://lucd.info/?p=870"&gt;CreateAlarm not (always) compatible with the vSphere client&lt;/a&gt;</description>
      <pubDate>Wed, 11 Nov 2009 21:25:05 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1414793</guid>
      <dc:date>2009-11-11T21:25:05Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>PowerCLI restrictions ?</title>
      <link>http://communities.vmware.com/message/1414672</link>
      <description>Just so you know, with vmware you can execute local scripts on the vmhost and you are able to execute local scripts remotely using ssh and Putty plink on any vmhosts in batch. See for example &lt;a class="jive-link-message" href="http://communities.vmware.com/message/1414668#1414668"&gt;http://communities.vmware.com/message/1414668#1414668&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Maybe that will help you managing vm machines remotely using batch scripts, if you are a script kidd &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":-)" /&gt;</description>
      <pubDate>Wed, 11 Nov 2009 19:16:41 GMT</pubDate>
      <author>bjkamp</author>
      <guid>http://communities.vmware.com/message/1414672</guid>
      <dc:date>2009-11-11T19:16:41Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Question about getting Size of Virtual Machine</title>
      <link>http://communities.vmware.com/message/1414616</link>
      <description>&lt;p /&gt;
The easy way is to use the GUI.  To get hard disk sizes for your VM's:&lt;br /&gt;
&lt;p /&gt;
(Get-VM VMName).Harddisks&lt;br /&gt;
&lt;p /&gt;
This will list all disks associated with the VM.  Add these numbers together with the amount of RAM you have allocated to the VM and you get how much space the VM is taking up on a datastore.  Below shows how you can add it all together.&lt;br /&gt;
&lt;p /&gt;
((Get-VM VMName).Harddisks | foreach {$_.CapacityKB / 1kb} | measure-object -sum).sum + (get-vm vmname).MemoryMB&lt;br /&gt;
&lt;p /&gt;
More efficiently and faster would look like below:&lt;br /&gt;
&lt;p /&gt;
$VMName = Get-VM VMName&lt;br /&gt;
&lt;p /&gt;
($VMName.Harddisks | foreach {$_.CapacityKB / 1kb} | measure-object -sum).sum + $VMName.MemoryMB&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
K. Chris Nakagaki (Zsoldier)&lt;br /&gt;
&lt;a class="jive-link-external" href="http://tech.zsoldier.com/"&gt;http://tech.zsoldier.com&lt;/a&gt;</description>
      <pubDate>Wed, 11 Nov 2009 17:51:03 GMT</pubDate>
      <author>Zsoldier</author>
      <guid>http://communities.vmware.com/message/1414616</guid>
      <dc:date>2009-11-11T17:51:03Z</dc:date>
      <clearspace:dateToText>1 week, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Alarm Settings via Powershell GUI</title>
      <link>http://communities.vmware.com/message/1414082</link>
      <description>&lt;span class="info"&gt;&lt;a class="jive-link-external" href="http://communities.vmware.com/docs/DOC-7480"&gt;http://communities.vmware.com/docs/DOC-7480&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
thanks</description>
      <pubDate>Wed, 11 Nov 2009 07:00:15 GMT</pubDate>
      <author>Benomatic</author>
      <guid>http://communities.vmware.com/message/1414082</guid>
      <dc:date>2009-11-11T07:00:15Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Script for Migrating all contents from one Virtual centre to another for a particular DataCentre including folder structure within VM's &amp;#38; Templates view</title>
      <link>http://communities.vmware.com/message/1413853</link>
      <description>Hi - Was this scripr ever posted or added to the thread..?</description>
      <pubDate>Tue, 10 Nov 2009 22:14:02 GMT</pubDate>
      <author>jssidhu71</author>
      <guid>http://communities.vmware.com/message/1413853</guid>
      <dc:date>2009-11-10T22:14:02Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>Connect-VIServer and Single Sign-on</title>
      <link>http://communities.vmware.com/message/1413695</link>
      <description>In case anyone else has the problem with single sign-on and using RunAs:&lt;br /&gt;
&lt;br /&gt;
Adding the following lines to the global profile fixed the issue.&lt;br /&gt;
&lt;br /&gt;
$USER=$env:username&lt;br /&gt;
$env:appdata = "C:\Documents and Settings\" + $USER + "\Application Data"</description>
      <pubDate>Tue, 10 Nov 2009 19:59:12 GMT</pubDate>
      <author>bkboyer</author>
      <guid>http://communities.vmware.com/message/1413695</guid>
      <dc:date>2009-11-10T19:59:12Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>24</clearspace:replyCount>
    </item>
    <item>
      <title>Running VI script as a scheduled task - credential issue</title>
      <link>http://communities.vmware.com/message/1413693</link>
      <description>Adding the following lines to my profile worked for me, too, for single sign-on with RunAs:&lt;br /&gt;
&lt;br /&gt;
$USER=$env:username&lt;br /&gt;
$env:appdata = "C:\Documents and Settings\" + $USER + "\Application Data" &lt;br /&gt;
&lt;br /&gt;
Just in case anyone else is having the issue.  Great info!!!</description>
      <pubDate>Tue, 10 Nov 2009 19:56:30 GMT</pubDate>
      <author>bkboyer</author>
      <guid>http://communities.vmware.com/message/1413693</guid>
      <dc:date>2009-11-10T19:56:30Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>how to get a Lun number from StorageDeviceInfo property to match a DeviceName or DevicePath?</title>
      <link>http://communities.vmware.com/message/1413527</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Finally, it is working well. Thanks again lucD</description>
      <pubDate>Tue, 10 Nov 2009 17:51:55 GMT</pubDate>
      <author>sylvain82</author>
      <guid>http://communities.vmware.com/message/1413527</guid>
      <dc:date>2009-11-10T17:51:55Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>PowerCLI - Datastores and LUNs.... Argh!!!</title>
      <link>http://communities.vmware.com/message/1413393</link>
      <description>Sure.  Code and example output attached.&lt;br /&gt;
&lt;br /&gt;
Cheers</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">datastore</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">lun</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">storage</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-view</category>
      <pubDate>Tue, 10 Nov 2009 16:14:55 GMT</pubDate>
      <author>catman</author>
      <guid>http://communities.vmware.com/message/1413393</guid>
      <dc:date>2009-11-10T16:14:55Z</dc:date>
      <clearspace:dateToText>1 week, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Setting Custom-Fields via New-VM?</title>
      <link>http://communities.vmware.com/message/1412785</link>
      <description>There is currently no parameter on the New-VM cmdlet for custom attributes (like there is for the Description property), but you can "pipe" the output of the New-VM cmdlet to the Set-CustomField cmdlet.&lt;br /&gt;
Something like this for example&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;New-VM -Name &amp;quot;PC1&amp;quot; -Description &amp;quot;PC1&amp;quot; -Datastore (Get-Datastore &amp;lt;dsname&amp;gt;) -VMHost (Get-VMHost &amp;lt;esxname&amp;gt;) | Set-CustomField -Name &amp;quot;Kostenstelle&amp;quot; -Value &amp;lt;some-value&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 09 Nov 2009 21:40:31 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1412785</guid>
      <dc:date>2009-11-09T21:40:31Z</dc:date>
      <clearspace:dateToText>1 week, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>scripts for Update Manager in vSphere4</title>
      <link>http://communities.vmware.com/message/1412743</link>
      <description>Luc,&lt;br /&gt;
&lt;br /&gt;
Thank you for your help.&lt;br /&gt;
&lt;br /&gt;
oleg</description>
      <pubDate>Mon, 09 Nov 2009 20:43:21 GMT</pubDate>
      <author>olegarr</author>
      <guid>http://communities.vmware.com/message/1412743</guid>
      <dc:date>2009-11-09T20:43:21Z</dc:date>
      <clearspace:dateToText>1 week, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Script to count VMotions per VM</title>
      <link>http://communities.vmware.com/message/1412367</link>
      <description>LucD,&lt;br /&gt;
&lt;br /&gt;
  Thanks. This is exactly what I was looking for.&lt;br /&gt;
&lt;p /&gt;
rassini</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vmotion</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">drs</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">count</category>
      <pubDate>Mon, 09 Nov 2009 13:42:40 GMT</pubDate>
      <author>rassini</author>
      <guid>http://communities.vmware.com/message/1412367</guid>
      <dc:date>2009-11-09T13:42:40Z</dc:date>
      <clearspace:dateToText>2 weeks, 19 minutes ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Powershell syntax to check whether a VM exists</title>
      <link>http://communities.vmware.com/message/1412193</link>
      <description>Alan, thanks for the prompt feedback and the issue is now resolved. &lt;br /&gt;
&lt;br /&gt;
When I initially attempted the code you advised e.g. "$Exists = get-vm -name $desktop", I still recieved the same error I previosuly experienced. However, I then added "-ErrorAction SilentlyContinue", which allows the script to continue without displying the error.&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
      <pubDate>Mon, 09 Nov 2009 10:48:20 GMT</pubDate>
      <author>joeflint</author>
      <guid>http://communities.vmware.com/message/1412193</guid>
      <dc:date>2009-11-09T10:48:20Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Get-VM Generates Error:  Unable to read data from the transport connection</title>
      <link>http://communities.vmware.com/message/1411279</link>
      <description>&lt;br /&gt;
I had the same problem here. By following the instructions in this thread I was able to determine which host was causing the issue by running &lt;br /&gt;
&lt;p /&gt;
" get-vm -location &amp;lt;clustername&amp;gt;  " on each cluster, and then " get-vm -location &amp;lt;hostname&amp;gt; " on each host in the cluster until I saw the one that returned the "unable to read data fromt the transport connection" message.&lt;br /&gt;
&lt;p /&gt;
Once I had determined the one host that was causing the problems, I opened a ticket with VMware and the support tech's only recommendation was to remove and re-add the host to the cluster. It so happened that we were scheduled to patch this host the next day. The host was rebooted as part of the patching and that fixed the issue. We did not have to remove and re-add the host to the cluster. &lt;br /&gt;
&lt;p /&gt;
This has happened to me twice so far (the first time the problem seemed to go away on it's own after a week), once when we upgraded our VC server to vSphere, and once when we implemented "vCenter requires verified host SSL certificates" . In both of these cases, all the hosts had to be added back to vCenter after the change, so my theory is that this problem can occur when a host is added to vCenter.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vm_not_working</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vm_error</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vm</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">unable_to_read_data_from_the_transport_connection</category>
      <pubDate>Fri, 06 Nov 2009 20:47:04 GMT</pubDate>
      <author>VMuser0123</author>
      <guid>http://communities.vmware.com/message/1411279</guid>
      <dc:date>2009-11-06T20:47:04Z</dc:date>
      <clearspace:dateToText>2 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Manage Folder in   Home - Inventory - Networking</title>
      <link>http://communities.vmware.com/message/1411246</link>
      <description>The Get-Folder cmdlet in the current build doesn't look in the Network folder.&lt;br /&gt;
To be able to use New-Folder on the Network folder you have to use a little trick&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$dc = Get-Datacenter &amp;lt;datacenter-name&amp;gt; | Get-View
$netFolder = Get-View -Id $dc.NetworkFolder
$nf = Get-VIObjectByVIView -MORef $netFolder.MoRef
New-Folder -Name &amp;quot;Test&amp;quot; -Location $nf
&lt;/code&gt;&lt;/pre&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">network</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">folder</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">creation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <pubDate>Fri, 06 Nov 2009 19:37:56 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1411246</guid>
      <dc:date>2009-11-06T19:37:56Z</dc:date>
      <clearspace:dateToText>2 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Disconnecting iSCSI target via script?</title>
      <link>http://communities.vmware.com/message/1410578</link>
      <description>Here's how to turn that into a function:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;function RemoveIScsiTarget ($vmHostList, $address, $port) {
        foreach ($vmHost in $vmHostList) {
		$storageSystem =  $vmHost | Get-VMHostStorage | Get-View
		$storageSystem.UpdateViewData(&amp;quot;storageDeviceInfo.hostBusAdapter&amp;quot;)
		$iScsiDevice = &amp;quot;vmhba33&amp;quot;
		$iScsi = $storageSystem.StorageDeviceInfo.HostBusAdapter | where { $_.GetType().Name -eq &amp;quot;HostInternetScsiHba&amp;quot; }
		$sendTarget = $iScsi | foreach { $_.ConfiguredSendTarget } | where { $_.Address -like $address -and $_.Port -like $port }
		$sendTarget = $iScsi | foreach { $_.ConfiguredStaticTarget  } | where { $_.Address -like $address -and $_.Port -like $port }
		
		if ($sendTargets -ne $null -and $sendTargets.Count -gt 0) {
			$storageSystem.RemoveInternetScsiSendTargets($iScsiDevice, $sendTarget)
		}
		if ($staticTargets -ne $null -and $staticTargets.Count -gt 0) {
			$storageSystem.RemoveInternetScsiStaticTargets($iScsiDevice, $staticTarget)
		}
	}
}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
And here's an example how to remove iScsi targets from all hosts in your VC:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;RemoveIScsiTarget (Get-VMHost) &amp;quot;10.10.10.*&amp;quot; &amp;quot;*&amp;quot;
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 06 Nov 2009 07:49:26 GMT</pubDate>
      <author>d_hristov</author>
      <guid>http://communities.vmware.com/message/1410578</guid>
      <dc:date>2009-11-06T07:49:26Z</dc:date>
      <clearspace:dateToText>2 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Reporting through Powershell</title>
      <link>http://communities.vmware.com/message/1410615</link>
      <description>&lt;br /&gt;
Thanks for the reply and the links mattroblin, but the problem is I don't know how to "tweak" the scripts unfortunately...&lt;br /&gt;
&lt;p /&gt;
The VESI interface looks cool, and that DailyCheck script would appear to give a lot of useful information (perhaps too much).... (It took me about an hour just to work out how to kick the script off, and then after about two hours of running I cancelled it - because it appears to run on the entire VC, instead of promting for a folder or Cluster)&lt;br /&gt;
&lt;p /&gt;
The VESI gives some basic reports that could be helpful, but would be great if it were possible to custom select some extra columns, so that when it reports on Virtual Machines, it reports all the info the you would find if you went to VirtualCenter, right-clicked on the VM, and Edit Settings... Things like which Network Adapter it is connected to; VMware Tools Status; Boot Delay etc  Is there any way to add these particular fields for reporting, or is the only way to get something scripted - because that would be a showstopper for me...&lt;br /&gt;
&lt;p /&gt;
 Thanks</description>
      <pubDate>Fri, 06 Nov 2009 09:07:15 GMT</pubDate>
      <author>FirstByte</author>
      <guid>http://communities.vmware.com/message/1410615</guid>
      <dc:date>2009-11-06T09:07:15Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>28</clearspace:replyCount>
    </item>
    <item>
      <title>change all vm's to enhanced vmxnet + ip address</title>
      <link>http://communities.vmware.com/message/1395746</link>
      <description>Here is the first version.&lt;br /&gt;
&lt;br /&gt;
Check the variables setions for cddrive and administrator account.&lt;br /&gt;
&lt;br /&gt;
The script works as follows.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;You have to select a datacenter and then a cluster.&lt;/li&gt;
&lt;li&gt;You will be asked to specify root, admin password for the account you specified, subnetmask, gateway, dns.&lt;/li&gt;
&lt;li&gt;Current ip get's collected&lt;/li&gt;
&lt;li&gt;iso get's mounted&lt;/li&gt;
&lt;li&gt;vm goes down&lt;/li&gt;
&lt;li&gt;current nic will be replaced with enhanced vmxnet&lt;/li&gt;
&lt;li&gt;vm get's powered on&lt;/li&gt;
&lt;li&gt;the old nic will be removed with devcon&lt;/li&gt;
&lt;li&gt;the vbs's on the iso will be executed with parameters&lt;/li&gt;
&lt;li&gt;iso will be unmounted&lt;/li&gt;
&lt;li&gt;vm will be rebooted&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Let me know what you think.&lt;br /&gt;
&lt;br /&gt;
Message was edited by:&lt;br /&gt;
&lt;br /&gt;
forgot to remove the test array from the script. this is fixed now&lt;br /&gt;
&lt;br /&gt;
Message was edited by: RobMokkink&lt;br /&gt;
Removed the scripts</description>
      <pubDate>Thu, 22 Oct 2009 11:48:46 GMT</pubDate>
      <author>RobMokkink</author>
      <guid>http://communities.vmware.com/message/1395746</guid>
      <dc:date>2009-10-22T11:48:46Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
    </item>
    <item>
      <title>Looping through two arrays to find a match</title>
      <link>http://communities.vmware.com/message/1410334</link>
      <description>Okay I have put a foreach in a foreach.  It works I was hoping to find a better way.  Just trying to learn better techniques that was all.  Thanks for looking.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Write-Host 'Attempting Hard disk resize'
	foreach ($resize in $vmDisks) {
		$DiskMatchcount = 0
		foreach ($ResizeDisk in $DiskNewSizes){
			if ([Math]::round($ResizeDisk.CurrentCapacity /100, 0) -eq [Math]::round(($resize.capacitykb /1024 )  /100, 0)) {$DiskMatchcount ++ }
		}
		if ($DiskMatchcount -eq 1) {
			$DiskMatch = $DiskNewSizes | where {[Math]::round($_.CurrentCapacity /100, 0) -eq [Math]::round(($resize.capacitykb /1024 )  /100, 0)}
			$NewSizeKB = $DiskMatch.NewCapacity * 1024
			Write-Host 'Match found resizing' $resize.Name $diskmatch.path 'from' $resize.CapacityKB 'KB to' $NewSizeKB 'KB'
			Set-HardDisk -HardDisk $resize -CapacityKB $NewSizeKB -whatif
		}
		elseif ($DiskMatch.count -ne 1) {
			Write-Host &amp;quot;Can't match disks manual resize required&amp;quot;
		}
	}
&lt;/code&gt;&lt;/pre&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">harddisks</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <pubDate>Thu, 05 Nov 2009 22:46:34 GMT</pubDate>
      <author>Matthewq</author>
      <guid>http://communities.vmware.com/message/1410334</guid>
      <dc:date>2009-11-05T22:46:34Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>credentials not passed to script run as a scheduled task</title>
      <link>http://communities.vmware.com/message/1410278</link>
      <description>I asked the team to take a look at this. I thought it was fixed, and we haven't got any recent complaints, but maybe it's because everyone was using the workaround.&lt;br /&gt;
&lt;br /&gt;
=====&lt;br /&gt;
Carter Shanklin&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blogs.vmware.com/vipowershell"&gt;Read the PowerCLI Blog&lt;/a&gt;&lt;br&gt;&lt;a class="jive-link-external" href="http://twitter.com/cshanklin"&gt;Follow me on Twitter&lt;/a&gt;</description>
      <pubDate>Thu, 05 Nov 2009 21:25:07 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1410278</guid>
      <dc:date>2009-11-05T21:25:07Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Fully rehydrating a Vimclient from Vim.dll</title>
      <link>http://communities.vmware.com/message/1409785</link>
      <description>Yeah I had hoped to follow that model as well, but because the LoadSession is void and it's blackbox implementation doesn't allow for you to bypass the actual File creation (redirect to a MemoryStream or FS) you would still need to deal with the perms even for the fraction of time the file existed.  Not the end of the world, but scraping the vmware_soap_session cookie is pretty easy and with the rehydrate process you can keep it lean and mean.</description>
      <pubDate>Thu, 05 Nov 2009 15:00:34 GMT</pubDate>
      <author>jrackliffe</author>
      <guid>http://communities.vmware.com/message/1409785</guid>
      <dc:date>2009-11-05T15:00:34Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Run scheduled job with SYSTEM account</title>
      <link>http://communities.vmware.com/message/1409793</link>
      <description>I am thinking of creating a new group say "ReadVCusers" and add SYSTEM to it. Then add this group as read-only to vc roles. May be then system could get access to vc from scheduled job.&lt;br /&gt;
&lt;br /&gt;
Will try from office tomorrow and update you.</description>
      <pubDate>Thu, 05 Nov 2009 14:44:48 GMT</pubDate>
      <author>harkamal</author>
      <guid>http://communities.vmware.com/message/1409793</guid>
      <dc:date>2009-11-05T14:44:48Z</dc:date>
      <clearspace:dateToText>2 weeks, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Set-VMHostNetworkAdapter hanging</title>
      <link>http://communities.vmware.com/message/1409679</link>
      <description>&lt;br /&gt;
Hi Luc,&lt;br /&gt;
&lt;p /&gt;
This is a good idea, but it's not possible to remove a Portgroup because when I try I receive this message: The Resource vim.host.PortGroup is in use.&lt;br /&gt;
&lt;p /&gt;
I know I can disable it with esxcfg-vswif -s but can't I do it trough Powershell?</description>
      <pubDate>Thu, 05 Nov 2009 13:30:20 GMT</pubDate>
      <author>rdiphoorn</author>
      <guid>http://communities.vmware.com/message/1409679</guid>
      <dc:date>2009-11-05T13:30:20Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>% and ? -  meaning in powershell</title>
      <link>http://communities.vmware.com/message/1409672</link>
      <description>These are aliases for the ForEach-Object (%) and the Where-Object (?) cmdlets.&lt;br /&gt;
You can see all the aliases by doing&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;alias 
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 05 Nov 2009 13:09:17 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1409672</guid>
      <dc:date>2009-11-05T13:09:17Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>error adding RDM LUN to VM (File is larger than the maximum size supported by datastore)</title>
      <link>http://communities.vmware.com/message/1409667</link>
      <description>&lt;br /&gt;
Thank you very much LucD. I changed the device name format and it is working now. As in vmware ESX 3.5, the format was hbaX:X:X:X, I though we had to use the new runtime name of vsphere.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 05 Nov 2009 12:55:30 GMT</pubDate>
      <author>sylvain82</author>
      <guid>http://communities.vmware.com/message/1409667</guid>
      <dc:date>2009-11-05T12:55:30Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>VpxSettings</title>
      <link>http://communities.vmware.com/message/1409417</link>
      <description>&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$si = Get-View ServiceInstance
$si.Content.Setting

Type                                              Value
----                                                  -----
OptionManager                           VpxSettings

So the syntax will become &amp;quot;Get-View Type-Value&amp;quot; , and thats how you got your syntax 
Get-View OptionManager-VpxSettings


&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">optionmanager</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vpxsettings</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">api</category>
      <pubDate>Thu, 05 Nov 2009 07:28:18 GMT</pubDate>
      <author>harkamal</author>
      <guid>http://communities.vmware.com/message/1409417</guid>
      <dc:date>2009-11-05T07:28:18Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Find a host Physical NIC IP address</title>
      <link>http://communities.vmware.com/message/1409144</link>
      <description>I think this is the answer - I have 4 MAC addresses, and only 2 IP addresses.</description>
      <pubDate>Wed, 04 Nov 2009 21:51:39 GMT</pubDate>
      <author>KarlMitschke</author>
      <guid>http://communities.vmware.com/message/1409144</guid>
      <dc:date>2009-11-04T21:51:39Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>[vCenter] Alarm and script being triggered really slow</title>
      <link>http://communities.vmware.com/message/1408889</link>
      <description>I can confirm, the dot-vertical bar construct works great.&lt;br /&gt;
Good find &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":-)" /&gt;</description>
      <pubDate>Wed, 04 Nov 2009 18:23:27 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1408889</guid>
      <dc:date>2009-11-04T18:23:27Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Get-View -ViewType VM list only VM's in a Datastore</title>
      <link>http://communities.vmware.com/message/1408758</link>
      <description>&lt;br /&gt;
Thank you very much, that worked like a charm&lt;br /&gt;
&lt;p /&gt;
 - Josh</description>
      <pubDate>Wed, 04 Nov 2009 16:56:56 GMT</pubDate>
      <author>jxstale</author>
      <guid>http://communities.vmware.com/message/1408758</guid>
      <dc:date>2009-11-04T16:56:56Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>how to make that Customfields automatic insert values?</title>
      <link>http://communities.vmware.com/message/1408757</link>
      <description>I suspect the domainname can also be extracted from&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;(Get-VM $vmName | Get-VMGuest).HostName
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 04 Nov 2009 16:55:30 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1408757</guid>
      <dc:date>2009-11-04T16:55:30Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>13</clearspace:replyCount>
    </item>
    <item>
      <title>VM expiration script - Automation problem</title>
      <link>http://communities.vmware.com/message/1408642</link>
      <description>&lt;br /&gt;
Hi Harkamal,&lt;br /&gt;
&lt;p /&gt;
Thanks very much for the piece of code, that's exactly what I was missing.  It made a huge difference &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Wed, 04 Nov 2009 15:42:57 GMT</pubDate>
      <author>herreraj</author>
      <guid>http://communities.vmware.com/message/1408642</guid>
      <dc:date>2009-11-04T15:42:57Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Is It possible to run a Customscript after a Machine is Created?</title>
      <link>http://communities.vmware.com/message/1408517</link>
      <description>You can create an Alarm for Virtual Machines that looks for specific events and that is triggered by the event "VM Created".&lt;br /&gt;
In the action "Run a command" you can then start a PowerShell script.&lt;br /&gt;
&lt;br /&gt;
Have a look at Carter's blog entry &lt;a class="jive-link-external" href="http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html"&gt;How to run PowerCLI scripts from vCenter Alarms&lt;/a&gt; for an example.</description>
      <pubDate>Wed, 04 Nov 2009 14:11:00 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1408517</guid>
      <dc:date>2009-11-04T14:11:00Z</dc:date>
      <clearspace:dateToText>2 weeks, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>How to do get-vm with parameters like (owner, Serv-description , etc)</title>
      <link>http://communities.vmware.com/message/1408495</link>
      <description>you are wright my bad &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vm;</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <pubDate>Wed, 04 Nov 2009 13:56:50 GMT</pubDate>
      <author>shatztal</author>
      <guid>http://communities.vmware.com/message/1408495</guid>
      <dc:date>2009-11-04T13:56:50Z</dc:date>
      <clearspace:dateToText>2 weeks, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>22</clearspace:replyCount>
    </item>
    <item>
      <title>Script for creating VM's and powering on</title>
      <link>http://communities.vmware.com/message/1407307</link>
      <description>&lt;br /&gt;
You need something like (not tested . . done freehand as I don;'t have powershell on the machine):&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
$name = read-host "Please Specify VM Name"&lt;br /&gt;
&lt;p /&gt;
$iso = Read-Host "Please specify ISO" &lt;br /&gt;
&lt;p /&gt;
$datastore = Read-Host "Please specify Datastore" &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Function BuildVm ($name, $isoimage, $Datastore) &lt;br /&gt;
&lt;p /&gt;
 {&lt;br /&gt;
&lt;p /&gt;
get-vmhost 'VMhost' | new-vm -name $name -datastore (get-datastore $datastore)  -diskmb ( 8GB / 1MB ) -memoryMB ( 1gb / 1mb )&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
get-vm $name | new-cddrive -isopath $iso -startconnected&lt;br /&gt;
&lt;p /&gt;
Start-VM $name&lt;br /&gt;
 }&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
 BuildVM ($name, $iso, $Datastore)</description>
      <pubDate>Tue, 03 Nov 2009 15:26:10 GMT</pubDate>
      <author>bulletprooffool</author>
      <guid>http://communities.vmware.com/message/1407307</guid>
      <dc:date>2009-11-03T15:26:10Z</dc:date>
      <clearspace:dateToText>2 weeks, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Snapshot question</title>
      <link>http://communities.vmware.com/message/1407174</link>
      <description>Aha! Thanks for that! Points coming up! &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/grin.gif" alt=":D" /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">snapshots</category>
      <pubDate>Tue, 03 Nov 2009 13:20:10 GMT</pubDate>
      <author>gwagchunks</author>
      <guid>http://communities.vmware.com/message/1407174</guid>
      <dc:date>2009-11-03T13:20:10Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>New-VM powered on Script</title>
      <link>http://communities.vmware.com/message/1407116</link>
      <description>&lt;br /&gt;
I am looking for a script to setup a new VM but within the new vm have the cd connected to an iso image on a datastore and then powered on and boot from CD which will start the installation of the guest.&lt;br /&gt;
&lt;p /&gt;
 I can use the new-vm to setup a VM with cpu, memory parameters and what datastore, and also setup a variable for the iso destination, but within the new-vm command how can i get the cd connected and then powered on and boot from CD.  Is there a script I can run.&lt;br /&gt;
&lt;p /&gt;
Can anyone advise please.</description>
      <pubDate>Tue, 03 Nov 2009 12:30:03 GMT</pubDate>
      <author>Guv</author>
      <guid>http://communities.vmware.com/message/1407116</guid>
      <dc:date>2009-11-03T12:30:03Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>Report on VM Guests</title>
      <link>http://communities.vmware.com/message/1407017</link>
      <description>Use the Measure-Object cmdlet for your sums, averages...and the Group-Object to create groups (with implicit counts) in your reports.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$VMGuest = @{ N = &amp;quot;Operating System&amp;quot; ; E = { (get-vmguest -VM $_).osfullname} }
Get-VM | Select-Object name, $vmguest, powerstate | Group-Object &amp;quot;Operating System&amp;quot;
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 03 Nov 2009 09:55:36 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1407017</guid>
      <dc:date>2009-11-03T09:55:36Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Does Powercli support powershell v2 on XP?</title>
      <link>http://communities.vmware.com/message/1407015</link>
      <description>cheers LucD &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;</description>
      <pubDate>Tue, 03 Nov 2009 09:53:51 GMT</pubDate>
      <author>packetboy</author>
      <guid>http://communities.vmware.com/message/1407015</guid>
      <dc:date>2009-11-03T09:53:51Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>ComputeResource</title>
      <link>http://communities.vmware.com/message/1406672</link>
      <description>&lt;br /&gt;
Thanks for the help.&lt;br /&gt;
&lt;p /&gt;
 Could have sworn I tried something similar and Get-View told me it didn't recognize the object type.&lt;br /&gt;
&lt;p /&gt;
 Oh well.&lt;br /&gt;
&lt;p /&gt;
 Thanks again.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">computeresource</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">resourcepool</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">hosts</category>
      <pubDate>Mon, 02 Nov 2009 22:53:45 GMT</pubDate>
      <author>Fisk</author>
      <guid>http://communities.vmware.com/message/1406672</guid>
      <dc:date>2009-11-02T22:53:45Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Clone VM using PowerCLi script</title>
      <link>http://communities.vmware.com/message/1406501</link>
      <description>&lt;br /&gt;
I tried cloning without specifing a Datastore/ResourcePool with no luck.  I ended up just specifying the datastore and resourcepool and it worked fine.  Not sure if it is a bug or not.&lt;br /&gt;
&lt;p /&gt;
 Here is an example function.&lt;hr /&gt;
&lt;p /&gt;
Function CloneCopy&lt;br /&gt;
&lt;p /&gt;
{param (&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=string"&gt;string&lt;/a&gt;$TargetDSName, &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=string"&gt;string&lt;/a&gt;$TargetTempName, &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=string"&gt;string&lt;/a&gt;$newTempName, &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=bool"&gt;bool&lt;/a&gt;$PowerOn, &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=bool"&gt;bool&lt;/a&gt;$toTemplate)&lt;br /&gt;
&lt;p /&gt;
$newDS = Get-Datastore $TargetDSName | Get-View&lt;br /&gt;
&lt;p /&gt;
$template = Get-Template -Name $TargetTempName | Get-View&lt;br /&gt;
&lt;p /&gt;
$folder = $datacenter.vmFolder&lt;br /&gt;
&lt;p /&gt;
$targethost = $usbhost | Get-View&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
$vmRelocSpec = New-Object VMware.Vim.VirtualMachineRelocateSpec&lt;br /&gt;
&lt;p /&gt;
$vmRelocSpec.datastore = $newDS.summary.Datastore &lt;br /&gt;
&lt;p /&gt;
$vmRelocSpec.host = $targethost.summary.host&lt;br /&gt;
&lt;p /&gt;
$vmRelocSpec.pool = $resourcePool.config.entity&lt;br /&gt;
&lt;p /&gt;
$vmRelocSpec.transform = "sparse"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
$vmCloneSpec = New-Object VMware.Vim.VirtualMachineCloneSpec &lt;br /&gt;
&lt;p /&gt;
$vmCloneSpec.location = $vmRelocSpec&lt;br /&gt;
&lt;p /&gt;
$vmCloneSpec.powerOn = $PowerOn&lt;br /&gt;
&lt;p /&gt;
$vmCloneSpec.template = $toTemplate&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
$template.CloneVM_Task($folder, $newTempName, $vmCloneSpec)&lt;br /&gt;
&lt;p /&gt;
}&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">for</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">clone</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vm</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <pubDate>Mon, 02 Nov 2009 20:00:17 GMT</pubDate>
      <author>Fisk</author>
      <guid>http://communities.vmware.com/message/1406501</guid>
      <dc:date>2009-11-02T20:00:17Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>move only one disk per storage vmotion</title>
      <link>http://communities.vmware.com/message/1406474</link>
      <description>&lt;br /&gt;
Ok, thank's, that's good to hear!  For now I'll have to finish up my project by manually doing the configuration moves, but scripting the virtual drive moves saved me a good chunk of time so I'm not complaining &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;  Just wanted to find out if I was overlooking an existing feature.</description>
      <pubDate>Mon, 02 Nov 2009 19:12:10 GMT</pubDate>
      <author>ringjc</author>
      <guid>http://communities.vmware.com/message/1406474</guid>
      <dc:date>2009-11-02T19:12:10Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>Filter command in powershell</title>
      <link>http://communities.vmware.com/message/1406368</link>
      <description>A Filter is the same as a Function except that it doesn't take any parameters but gets the value on the pipeline (accessible through the $_ variable in the Filter).&lt;br /&gt;
In this example the Filter expects a HostSystemImpl object as object on the pipeline, it does a Get-VMHostStorage cmdlet and returns all the properties of the object in the FilesystemVolumeInfo property).</description>
      <pubDate>Mon, 02 Nov 2009 17:53:01 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1406368</guid>
      <dc:date>2009-11-02T17:53:01Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>ESX/ESXi Host CPU and Memory usage and export to CSV</title>
      <link>http://communities.vmware.com/message/1406321</link>
      <description>&lt;br /&gt;
Hello... &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
How would you make the script get the CPU and Memory for a specific month then average that out?</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">automation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">cmdlet</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vmhost</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">get-vm</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powershell</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">report</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">reporting</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">script</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">toolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vi_toolkit_windows</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vitoolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">vmware</category>
      <pubDate>Mon, 02 Nov 2009 17:52:17 GMT</pubDate>
      <author>kosmasj</author>
      <guid>http://communities.vmware.com/message/1406321</guid>
      <dc:date>2009-11-02T17:52:17Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>import permissions into vsphere</title>
      <link>http://communities.vmware.com/message/1406319</link>
      <description>Did you already look at my article &lt;a class="jive-link-external" href="http://www.virtu-al.net/2009/06/15/vsphere-permissions-export-import-part-1/"&gt;vSphere permissions: export &amp;#38; import – Part 1&lt;/a&gt; and &lt;a class="jive-link-external" href="http://www.virtu-al.net/2009/06/14/vsphere-permissions-export-import-part-2/"&gt;Part 2&lt;/a&gt; on &lt;a class="jive-link-external" href="http://www.virtu-al.net"&gt;Alan's&lt;/a&gt; blog ?</description>
      <pubDate>Mon, 02 Nov 2009 17:49:00 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1406319</guid>
      <dc:date>2009-11-02T17:49:00Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Iscsi multipathing</title>
      <link>http://communities.vmware.com/message/1406278</link>
      <description>There is not currently a cmdlet to let you do that, though the example you have is possible in the API (if you can figure it out, not very trivial unfortunately).&lt;br /&gt;
&lt;br /&gt;
I should also mention that some stuff in esxcli is not possible through vSphere API at all, especially stuff around the so-called pluggable storage architecture.&lt;br /&gt;
&lt;br /&gt;
=====&lt;br /&gt;
Carter Shanklin&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blogs.vmware.com/vipowershell"&gt;Read the PowerCLI Blog&lt;/a&gt;&lt;br&gt;&lt;a class="jive-link-external" href="http://twitter.com/cshanklin"&gt;Follow me on Twitter&lt;/a&gt;</description>
      <pubDate>Mon, 02 Nov 2009 16:54:49 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1406278</guid>
      <dc:date>2009-11-02T16:54:49Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>How to Install PowerCLI on a drive other than C:</title>
      <link>http://communities.vmware.com/message/1406243</link>
      <description>&lt;br /&gt;
Sorry for both taking so long to try HARKAMAL's solution and for being a 'PIA'.  I gave up on installing PowerCLI on a server for a time while I worked on getting my scripts to run as scheduled tasks on a workstation.  Naturally the Security Guys threw in theobstacle ofnobody here having the permission to "Logon as a Batch File", ever since some virus threat was reported to use scheduled tasks to reinfest.  I have beaten them at their game and can now run PowerCLI from one of my wokstations.  I also worked on a way to save encrypted passwords in a file for the scheduled scripts to use to connect to virtual centers.  &lt;br /&gt;
&lt;p /&gt;
So back to the server installation.  The server is Windows 2003, Enterprise x64 Edition (Version 5.2.3790).  The install process stalls at a point where It is unsuccessful accessing a registry key.  I modified HARKAMAL's command line to this so I could log the process:&lt;br /&gt;
&lt;p /&gt;
VMware-Vim4PS-4.0.0-162509.exe /q /s /w /L1033 /V" /qn INSTALLDIR=\"F:\Program Files\VMWarePowerCli\" /l*v \"F:\Install_log.txt\""&lt;br /&gt;
&lt;p /&gt;
The script appears to be looking for a key "HKEY_LOCAL_MACHINE32\SOFTWARE\Wow6432Node\VMware, Inc.\VMware VI Toolkit (for Windows)", but there is no HKEY_LOCAL_MACHINE32 in the registry.&lt;br /&gt;
&lt;p /&gt;
Any ideas?&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 02 Nov 2009 16:50:55 GMT</pubDate>
      <author>sullom</author>
      <guid>http://communities.vmware.com/message/1406243</guid>
      <dc:date>2009-11-02T16:50:55Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
    </item>
    <item>
      <title>Select or select-object</title>
      <link>http://communities.vmware.com/message/1406270</link>
      <description>OK thanks for making that clear</description>
      <pubDate>Mon, 02 Nov 2009 16:48:10 GMT</pubDate>
      <author>Guv</author>
      <guid>http://communities.vmware.com/message/1406270</guid>
      <dc:date>2009-11-02T16:48:10Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>scheduled tasks + credentials not passed to script</title>
      <link>http://communities.vmware.com/message/1406190</link>
      <description>My two cents to Rob, Luc, and Alan.  I have had this problem with PowerCLI 4 as well.  However, I think maybe it is sort of fixed.  Here's my situation:&lt;br /&gt;
&lt;br /&gt;
1) I have an AD service account that has the appropriate vCenter permissions.&lt;br /&gt;
&lt;br /&gt;
2) I run the scheduled PShell task with this AD service account while logged into the server and it of course works fine.&lt;br /&gt;
&lt;br /&gt;
3) I log out.&lt;br /&gt;
&lt;br /&gt;
4) Script continues to run fine until the server is rebooted (which of course happens each months for Microsoft patches).&lt;br /&gt;
&lt;br /&gt;
5) To fix it I can simply log in as my service account and just log right back out--I don't even have to interactively run the script to fix it.&lt;br /&gt;
&lt;br /&gt;
So it seems to me that logging in must create the %APPDATA% environment variable and apparently logging out doesn't clear the variable properly or something.&lt;br /&gt;
&lt;br /&gt;
My main question is, why is "Connect-VIServer" even trying to make a call to this path?  Shouldn't it only do that when I call "Get-VICredentialStoreItem"?  My script is simply doing:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[string]$strVCServer = &amp;quot;servername.domain&amp;quot;
Connect-VIServer -Server $strVCServer
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Also, sorry for the late post to this old thread, if it should be a new one I can create a new one.  This is the first I've seen of this thread today and figured I'd keep it in one place.</description>
      <pubDate>Mon, 02 Nov 2009 15:55:43 GMT</pubDate>
      <author>allencrawford</author>
      <guid>http://communities.vmware.com/message/1406190</guid>
      <dc:date>2009-11-02T15:55:43Z</dc:date>
      <clearspace:dateToText>2 weeks, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>23</clearspace:replyCount>
    </item>
    <item>
      <title>relocate vm's from csv file and create schedule task in VC</title>
      <link>http://communities.vmware.com/message/1405980</link>
      <description>Correct, forgot that one.</description>
      <pubDate>Mon, 02 Nov 2009 13:00:52 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1405980</guid>
      <dc:date>2009-11-02T13:00:52Z</dc:date>
      <clearspace:dateToText>3 weeks, 1 hour ago</clearspace:dateToText>
      <clearspace:replyCount>23</clearspace:replyCount>
    </item>
    <item>
      <title>Find vmdk per script</title>
      <link>http://communities.vmware.com/message/1405936</link>
      <description>Have a look at  &lt;a href="http://communities.vmware.com/message/1321939#1321939" class="jive-link-message"&gt;Way to report on Orphaned .VMDK files&lt;/a&gt;.</description>
      <pubDate>Mon, 02 Nov 2009 11:55:39 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1405936</guid>
      <dc:date>2009-11-02T11:55:39Z</dc:date>
      <clearspace:dateToText>3 weeks, 2 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>script to find the changes done in infrastrcuture for a period of time</title>
      <link>http://communities.vmware.com/message/1405400</link>
      <description>You could try the method I decribed in &lt;a class="jive-link-external" href="http://lucd.info/?p=162"&gt;TA2650 scripts – Part 3 – Checking cluster node configurations&lt;/a&gt;.&lt;br /&gt;
Like I mentioned in &lt;a class="jive-link-external" href="http://lucd.info/?p=7"&gt;TA2650 scripts – Part 1 – Profiling your vSphere environment&lt;/a&gt; the XML files are good way of keeping an audit track of your vSPhere environment.</description>
      <pubDate>Sun, 01 Nov 2009 10:19:32 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1405400</guid>
      <dc:date>2009-11-01T10:19:32Z</dc:date>
      <clearspace:dateToText>3 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>list disks rdm with powershell</title>
      <link>http://communities.vmware.com/message/1405209</link>
      <description>&lt;br /&gt;
This script is very helpful.  I have trying to figure out how to add 'Runtime Name:' and 'Adpater:' information to this report.&lt;br /&gt;
&lt;p /&gt;
 Any thoughts on how to do this?&lt;br /&gt;
&lt;p /&gt;
Thanks in advance.&lt;br /&gt;
&lt;p /&gt;
-Mark&lt;br /&gt;
&lt;p /&gt;
fc.200000e08b9bad3f:210000e08b9bad3f-fc.50060160c1e02ae9:5006016141e02ae9-naa.60060160efe01900c883b8dee114de11&lt;br /&gt;
   Runtime Name: vmhba1:C0:T0:L22&lt;br /&gt;
   Device: naa.60060160efe01900c883b8dee114de11&lt;br /&gt;
   Device Display Name: DGC Fibre Channel Disk (naa.60060160efe01900c883b8dee114de11)&lt;br /&gt;
   Adapter: vmhba1 Channel: 0 Target: 0 LUN: 22&lt;br /&gt;
   Adapter Identifier: fc.200000e08b9bad3f:210000e08b9bad3f&lt;br /&gt;
   Target Identifier: fc.50060160c1e02ae9:5006016141e02ae9&lt;br /&gt;
   Plugin: NMP&lt;br /&gt;
   State: active&lt;br /&gt;
   Transport: fc&lt;br /&gt;
   Adapter Transport Details: WWNN: 20:00:00:e0:8b:9b:ad:3f WWPN: 21:00:00:e0:8b:9b:ad:3f&lt;br /&gt;
   Target Transport Details: WWNN: 50:06:01:60:c1:e0:2a:e9 WWPN: 50:06:01:61:41:e0:2a:e9</description>
      <pubDate>Sat, 31 Oct 2009 20:08:24 GMT</pubDate>
      <author>zMarkz</author>
      <guid>http://communities.vmware.com/message/1405209</guid>
      <dc:date>2009-10-31T20:08:24Z</dc:date>
      <clearspace:dateToText>3 weeks, 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>Is it possible to create Alarms by using CLI?</title>
      <link>http://communities.vmware.com/message/1404498</link>
      <description>No problem, you're more than welcome &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;</description>
      <pubDate>Fri, 30 Oct 2009 17:42:16 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1404498</guid>
      <dc:date>2009-10-30T17:42:16Z</dc:date>
      <clearspace:dateToText>3 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>How to extract VM UUIDs</title>
      <link>http://communities.vmware.com/message/1404390</link>
      <description>&lt;br /&gt;
Powershell:&lt;br /&gt;
&lt;p /&gt;
 $vc = Read-Host "Please specify your VirtualCenter"&lt;br /&gt;
Connect-VIServer $vc&lt;br /&gt;
$VMHs = Get-VM&lt;br /&gt;
&lt;br /&gt;
$myCol = @()&lt;br /&gt;
ForEach ($vmh in $vmhs)&lt;br /&gt;
{&lt;br /&gt;
  $myObj = "" | &lt;br /&gt;
        Select Name, UUID&lt;br /&gt;
  $myObj.name = $vmh.name&lt;br /&gt;
  $myObj.UUID = Get-VM $vmh.name | %{(Get-View $_.Id).config.uuid}&lt;br /&gt;
  $myCol += $myObj&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$myCol</description>
      <category domain="http://communities.vmware.com/tags?communityID=2530">powercli</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">uuid</category>
      <category domain="http://communities.vmware.com/tags?communityID=2530">extract</category>
      <pubDate>Fri, 30 Oct 2009 16:28:08 GMT</pubDate>
      <author>bulletprooffool</author>
      <guid>http://communities.vmware.com/message/1404390</guid>
      <dc:date>2009-10-30T16:28:08Z</dc:date>
      <clearspace:dateToText>3 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
  </channel>
</rss>

