<?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: Message List - index out of range error with get-vmhostntpserver</title>
    <link>http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 20 Mar 2009 17:08:08 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-03-20T17:08:08Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: index out of range error with get-vmhostntpserver</title>
      <link>http://communities.vmware.com/message/1204830?tstart=0#1204830</link>
      <description>Right (not supported on 3.0.2) and right (better error)</description>
      <pubDate>Fri, 20 Mar 2009 17:08:08 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1204830?tstart=0#1204830</guid>
      <dc:date>2009-03-20T17:08:08Z</dc:date>
      <clearspace:dateToText>8 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>index out of range error with get-vmhostntpserver</title>
      <link>http://communities.vmware.com/message/1203017?tstart=0#1203017</link>
      <description>&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;§ ATLLAPHROTTENBE {~} $a = Get-VMHost
§ ATLLAPHROTTENBE {~} $a[0] | Get-VMHostNtpServer
127.127.1.0
§ ATLLAPHROTTENBE {~} $a[1] | Get-VMHostNtpServer
Get-VMHostNtpServer : Index was outside the bounds of the array.
At line:1 char:28
+ $a[1] | Get-VMHostNtpServer &amp;lt;&amp;lt;&amp;lt;&amp;lt;
    + CategoryInfo          : NotSpecified: (:) [Get-VMHostNtpServer], IndexOutOfRangeExcep
   tion
    + FullyQualifiedErrorId : System.IndexOutOfRangeException,VMware.VimAutomation.Commands
   .Host.GetVMHostNtpServer
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Add and Remove give similar errors on the same servers.  I just checked server versions, looks like it's failing on my 3.0.2 servers, but works on my single 3.5 server.  If this isn't supported, then you need a better error...&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class="jive-link-external" href="http://www.vmware.com/communities/vexpert/"&gt;vExpert&lt;/a&gt;, &lt;a class="jive-link-external" href="https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F"&gt;PowerShell MVP&lt;/a&gt;, VI Toolkit forum moderator&lt;br /&gt;
Author of the upcoming book: &lt;a class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/a&gt;&lt;br /&gt;
Co-Host, PowerScripting Podcast (&lt;a class="jive-link-external" href="http://powerscripting.net"&gt;http://powerscripting.net&lt;/a&gt;)&lt;br /&gt;
Need general, non-VMware-related PowerShell Help? Try the forums at &lt;a class="jive-link-external" href="http://powershellcommunity.org"&gt;PowerShellCommunity.org&lt;/a&gt;</description>
      <pubDate>Thu, 19 Mar 2009 02:51:05 GMT</pubDate>
      <author>halr9000</author>
      <guid>http://communities.vmware.com/message/1203017?tstart=0#1203017</guid>
      <dc:date>2009-03-19T02:51:05Z</dc:date>
      <clearspace:dateToText>8 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
  </channel>
</rss>

