<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disable Delayed ack on all ESXi hosts in a cluster. in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448818#M10305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to update the HostProfile with the &lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/557aee4d-26f9-4810-bc12-b1cf22401c8f/ca9f89cf-cdea-4e9c-9e50-f214cf902c1b/doc/Set-VMHostProfile.html"&gt;Set-VMHostProfile&lt;/A&gt; cmdlet, and reference an ESXi node for which you just changed the delayed ack.&lt;BR /&gt;Note that all other properties in the HostProfile will also be overwritten by the current settings of that ESXi node.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2019 18:12:38 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2019-06-10T18:12:38Z</dc:date>
    <item>
      <title>Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448814#M10301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="himKiy rz6fp9-10" style="padding-bottom: 0.25em; font-family: 'Noto Sans', Arial, sans-serif; color: #1a1a1b;"&gt;Hi guys. I'm trying to get this modified script to disable "delayed ack" on every esxi host in a cluster. With the original script, it only targets specific esxi hosts instead and it runs just fine. When it runs this way (i.e. specifying the cluster so it iterates through the hosts one at a time), it fails on the first host it attempts to process. The error message has been provided below. Could someone tell me why it's not working and / or help fix it?&lt;/P&gt;&lt;P&gt;&lt;CODE class="__reader_view_article_wrap_9472257991051285__ rz6fp9-7 jYpcYF" style="font-style: inherit; font-size: 13px; font-family: 'Noto Mono', Menlo, Monaco, Consolas, monospace; background: transparent; color: #222222;"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;=================Error Message============&lt;/P&gt;&lt;P&gt;Exception calling "UpdateInternetScsiAdvancedOptions" with "3" argument(s): "The object or item referred to could not be found."&lt;/P&gt;&lt;P&gt;At line:52 char:1&lt;/P&gt;&lt;P&gt;+ $HostStorageSystem.UpdateInternetScsiAdvancedOptions($HostiSCSISoftwa ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [], MethodInvocationException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : VimException&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================Script====================&lt;/P&gt;&lt;P&gt; param (&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true&lt;/P&gt;&lt;P&gt;,HelpMessage="VC Name")]&lt;/P&gt;&lt;P&gt;[string] $VC&lt;/P&gt;&lt;P&gt;,[parameter(Mandatory=$true&lt;/P&gt;&lt;P&gt;,HelpMessage="Cluster Name")]&lt;/P&gt;&lt;P&gt;[string] $cluster&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;$svr=$null;&lt;/P&gt;&lt;P&gt;$svr = Connect-VIServer -Server $VC;&lt;/P&gt;&lt;P&gt;if ($svr -eq $null)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$sMsg = "Unable to connect to VC " + $VC;&lt;/P&gt;&lt;P&gt;exit 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;$sMsg = "Getting cluster " + $cluster +" on VC " + $VC;&lt;/P&gt;&lt;P&gt;Write-Host $sMsg;&lt;/P&gt;&lt;P&gt;$oClstr=$null;&lt;/P&gt;&lt;P&gt;$oClstr = Get-Cluster -Server:$svr -Name $cluster;&lt;/P&gt;&lt;P&gt;if ($oClstr -eq $null)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$sMsg="Unable to find cluster " +$cluster + " on VC " + $VC;&lt;/P&gt;&lt;P&gt;$iret1 = Disconnect-VIServer -Server:$svr -Confirm:$false -ErrorAction:SilentlyContinue;&lt;/P&gt;&lt;P&gt;exit 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;$sMsg ="Getting hosts on cluster " + $cluster + " on VC " + $VC;&lt;/P&gt;&lt;P&gt;write-host $sMsg;&lt;/P&gt;&lt;P&gt;$hosts = Get-VMHost -Location $oClstr -Server:$svr;&lt;/P&gt;&lt;P&gt;foreach($item in $hosts)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$sMsg = "Processing host " + $item.Name + " in cluster " +$cluster + " on VC " +$VC;&lt;/P&gt;&lt;P&gt;write-host $sMsg;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;$HostView = Get-VMHost $hosts | Get-View&lt;/P&gt;&lt;P&gt;$HostStorageSystemID = $HostView.configmanager.StorageSystem&lt;/P&gt;&lt;P&gt;$HostiSCSISoftwareAdapterHBAID = ($HostView.config.storagedevice.HostBusAdapter | where {$_.Model -match "iSCSI Software"}).device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$options = New-Object VMWare.Vim.HostInternetScsiHbaParamValue[] (1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$options[0] = New-Object VMware.Vim.HostInternetScsiHbaParamValue&lt;/P&gt;&lt;P&gt;$options[0].key = "DelayedAck"&lt;/P&gt;&lt;P&gt;$options[0].value = $false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$HostStorageSystem = Get-View -ID $HostStorageSystemID&lt;/P&gt;&lt;P&gt;$HostStorageSystem.UpdateInternetScsiAdvancedOptions($HostiSCSISoftwareAdapterHBAID, $null, $options)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:08:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448814#M10301</guid>
      <dc:creator>BBB36</dc:creator>
      <dc:date>2019-06-05T18:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448815#M10302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your foreach loop does not include the method call.&lt;BR /&gt;You should use $item (a single ESXi node) and not $hosts (all ESXi nodes in the cluster) inside the foreach loop.&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #00008b;"&gt;param&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;parameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;Mandatory&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #a9a9a9;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #ff4500;"&gt;HelpMessage&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;VC Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #00008b;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #a9a9a9;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;parameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;Mandatory&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #a9a9a9;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #ff4500;"&gt;HelpMessage&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;Cluster Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #00008b;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;cluster&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;svr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;svr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Connect-VIServer&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Server &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00008b;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;($&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;svr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-eq&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;Unable to connect to VC &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #00008b;"&gt;exit&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;Getting cluster &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;cluster&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt; on VC &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Write-Host&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;oClstr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;oClstr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Get-Cluster&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Server:&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;svr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Name &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;cluster&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00008b;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;($&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;oClstr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-eq&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;Unable to find cluster &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;cluster&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt; on VC &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;iret1&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Disconnect-VIServer&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Server:&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;svr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Confirm:&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;false&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;ErrorAction:SilentlyContinue&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #00008b;"&gt;exit&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;Getting hosts on cluster &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;cluster&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt; on VC &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;write-host&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;options&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;New-Object&lt;/SPAN&gt; VMWare.Vim.HostInternetScsiHbaParamValue&lt;SPAN style="color: #000000;"&gt;[]&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;options&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;New-Object&lt;/SPAN&gt; VMware.Vim.HostInternetScsiHbaParamValue&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;options&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt;.key &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;DelayedAck&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;options&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt;.value &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;false&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;hosts&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Get-VMHost&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Location &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;oClstr&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Server:&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;svr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00008b;"&gt;foreach&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;($&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;item&lt;/SPAN&gt; &lt;SPAN style="color: #00008b;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;hosts&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;Processing host &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;item.Name&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt; in cluster &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;cluster&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt; on VC &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;VC&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;write-host&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;sMsg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;HostStorageSystemID&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;item.EXtensionData.configmanager.StorageSystem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;HostiSCSISoftwareAdapterHBAID&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;($&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;item.EXtensionData.config.storagedevice.HostBusAdapter&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #00008b;"&gt;where&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;_&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;.Model&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-match&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;iSCSI Software&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;})&lt;/SPAN&gt;.device&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;HostStorageSystem&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Get-View&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;ID &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;HostStorageSystemID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;HostStorageSystem.UpdateInternetScsiAdvancedOptions&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;($&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;HostiSCSISoftwareAdapterHBAID&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;options&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:38:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448815#M10302</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2019-06-05T18:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448816#M10303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LucD. As always, works like a charm! Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 20:29:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448816#M10303</guid>
      <dc:creator>BBB36</dc:creator>
      <dc:date>2019-06-05T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448817#M10304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LucD. I have a quick follow up question if you can. Is there a way to update the host profile using PowerCLI after delayed ack has been disabled on the hosts?&lt;/P&gt;&lt;P&gt;And would it make sense to combine both scripts or have them separate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 17:59:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448817#M10304</guid>
      <dc:creator>BBB36</dc:creator>
      <dc:date>2019-06-10T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448818#M10305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to update the HostProfile with the &lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/557aee4d-26f9-4810-bc12-b1cf22401c8f/ca9f89cf-cdea-4e9c-9e50-f214cf902c1b/doc/Set-VMHostProfile.html"&gt;Set-VMHostProfile&lt;/A&gt; cmdlet, and reference an ESXi node for which you just changed the delayed ack.&lt;BR /&gt;Note that all other properties in the HostProfile will also be overwritten by the current settings of that ESXi node.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 18:12:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448818#M10305</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2019-06-10T18:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448819#M10306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep. Good point. Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 19:25:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448819#M10306</guid>
      <dc:creator>BBB36</dc:creator>
      <dc:date>2019-06-10T19:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448820#M10307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry one last question. I was able to achieve updating the profile from reference host OK using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************************************&lt;/P&gt;&lt;P&gt;$Profile = Get-VMHostProfile&lt;/P&gt;&lt;P&gt;$Spec = New-Object VMware.Vim.HostProfileHostBasedConfigSpec&lt;/P&gt;&lt;P&gt;$Spec.Host = New-Object VMware.Vim.ManagedObjectReference&lt;/P&gt;&lt;P&gt;$Spec.Host = $Profile.ReferenceHost.ExtensionData.MoRef&lt;/P&gt;&lt;P&gt;$Spec.useHostProfileEngine = $true&lt;/P&gt;&lt;P&gt;$Profile.ExtensionData.UpdateHostProfile($Spec)&lt;/P&gt;&lt;P&gt;**************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is there a way to have only the changed setting to be overwritten?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 22:15:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448820#M10307</guid>
      <dc:creator>BBB36</dc:creator>
      <dc:date>2019-06-10T22:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448821#M10308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not with a cmdlet I'm afraid.&lt;/P&gt;&lt;P&gt;You could fall back to using the API method &lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/fe08899f-1eec-4d8d-b3bc-a6664c168c2c/7fdf97a1-4c0d-4be0-9d43-2ceebbc174d9/doc/vim.profile.host.HostProfile.html#update"&gt;UpdateHostProfile&lt;/A&gt;, but the problem might be that the layout of the object you need to update is not documented.&lt;BR /&gt;It will require some reverse engineering.&lt;/P&gt;&lt;P&gt;Similar to what I did in &lt;A href="http://www.lucd.info/2012/01/15/change-theroot-password-in-hosts-and-host-profiles/"&gt;Change The Root Password In Hosts And Host Profiles&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 06:13:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448821#M10308</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2019-06-11T06:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Delayed ack on all ESXi hosts in a cluster.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448822#M10309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. Again, appreciate all your help. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 21:19:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Disable-Delayed-ack-on-all-ESXi-hosts-in-a-cluster/m-p/448822#M10309</guid>
      <dc:creator>BBB36</dc:creator>
      <dc:date>2019-06-11T21:19:47Z</dc:date>
    </item>
  </channel>
</rss>

