<?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: required powercli script for Mass update of VMtools manually in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908504#M106639</link>
    <description>&lt;P&gt;You can put your cluster name after the Get-Cluster command in the first line as follows:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;$ToolsAutoSettingsVMs = Get-Cluster &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"CLUSTERNAMEHERE"&lt;/STRONG&gt; &lt;/FONT&gt;| Get-VM | Sort | Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Config.Tools.ToolsUpgradePolicy") | Select -Property Name, @{N="Configured OS";E={$_.Config.GuestFullName}}, @{N="Running OS";E={$_.Guest.GuestFullName}}, @{N='ToolsUpgradePolicy';E={$_.Config.Tools.ToolsUpgradePolicy }}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Wed, 11 May 2022 15:20:48 GMT</pubDate>
    <dc:creator>CNorris_Const</dc:creator>
    <dc:date>2022-05-11T15:20:48Z</dc:date>
    <item>
      <title>required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908458#M106629</link>
      <description>&lt;P&gt;Hi Lucd ,&lt;/P&gt;&lt;P&gt;Kindly help me out with powercli script for Mass update of VMtools manually from Shared folder.&lt;/P&gt;&lt;P&gt;Scenario:- Store the VMtools.exe (VMware-tools-11.2.6-17901274-x86_64.exe) from shared folder and Update the same via script in multiple VM's.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Below is the script I'm trying..no go with it.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;#Variables&lt;BR /&gt;$computername = Get-Content c:\temp\servers.txt&lt;BR /&gt;$sourcefile = "c:\temp\VMware-tools-11.2.6-17901274-x86_64.exe"&lt;BR /&gt;#This section will install the software&lt;BR /&gt;foreach ($computer in $computername)&lt;BR /&gt;{&lt;BR /&gt;$destinationFolder = "\\$computer\C$\Temp"&lt;BR /&gt;#It will copy $sourcefile to the $destinationfolder. If the Folder does not exist it will create it.&lt;/P&gt;&lt;P&gt;if (!(Test-Path -path $destinationFolder))&lt;BR /&gt;{&lt;BR /&gt;New-Item $destinationFolder -Type Directory&lt;BR /&gt;}&lt;BR /&gt;Copy-Item -Path $sourcefile -Destination $destinationFolder&lt;BR /&gt;Invoke-Command -ComputerName $computer -ScriptBlock {Start-Process 'c:\temp\VMware-tools-11.2.6-17901274-x86_64.exe'}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Kindly assist me ...Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 12:28:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908458#M106629</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908461#M106630</link>
      <description>&lt;P&gt;No error messages?&lt;BR /&gt;Can you enable logging on the EXE?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 12:46:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908461#M106630</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-05-11T12:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908465#M106631</link>
      <description>&lt;P&gt;Hi Lucd,&lt;/P&gt;&lt;P&gt;I'm able to copy the .EXE to remote VM on C:\TEMP, but it's not executing the exe automatically.&lt;/P&gt;&lt;P&gt;no error, But stuck her from past 20 min&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prasanna22kumar_0-1652273439597.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/95214i212EF07BF2B4BD3E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="prasanna22kumar_0-1652273439597.png" alt="prasanna22kumar_0-1652273439597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or any other way I can execute VM tools instead of doing it manually on Multiple Server's.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 12:52:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908465#M106631</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T12:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908468#M106633</link>
      <description>&lt;P&gt;That sounds as if the script is waiting with a prompt (you don't see) to allow admin privileges.&lt;BR /&gt;Is UAC enabled?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 12:57:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908468#M106633</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-05-11T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908469#M106634</link>
      <description>&lt;P&gt;Thanks for your reply ..&lt;/P&gt;&lt;P&gt;I have to verify with Windows team whether UAC is enabled or disabled. If it's enabled , than i don't know whether i can disable it.&lt;/P&gt;&lt;P&gt;When i checked in the system I'm running it's "enabled to notify"&lt;/P&gt;&lt;P&gt;There is any way i can bypass this notify one &amp;amp; run automatically other than disabling (UAC) manually in all VM's&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 13:07:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908469#M106634</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908494#M106635</link>
      <description>&lt;P&gt;It's not advised to bypass UAC using PowerShell. You would need to change registry values on the remote machine in order to achieve this.&lt;/P&gt;&lt;P&gt;Is it possible to have a service account with admin privileges' created for scripts to run under?&lt;/P&gt;&lt;P&gt;I have a code snippet that will set your VM to upgrade Tools on next OS reboot. You could easily modify this and use it how you want in your environment. I'm assuming your VMs reboot at least once a month for some sort of patching:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ToolsAutoSettingsVMs = Get-Cluster | Get-VM | Sort | Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Config.Tools.ToolsUpgradePolicy") | Select -Property Name, @{N="Configured OS";E={$_.Config.GuestFullName}}, @{N="Running OS";E={$_.Guest.GuestFullName}}, @{N='ToolsUpgradePolicy';E={$_.Config.Tools.ToolsUpgradePolicy }}

ForEach ($VM in ($ToolsAutoSettingVMs)){
$VMConfig = Get-View -VIObject $VM.Name
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo
$vmConfigSpec.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle"
$VMConfig.ReconfigVM($vmConfigSpec)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:44:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908494#M106635</guid>
      <dc:creator>CNorris_Const</dc:creator>
      <dc:date>2022-05-11T14:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908499#M106636</link>
      <description>&lt;P&gt;Hi Norris,&lt;/P&gt;&lt;P&gt;Thanks a lot...I can try this one...But if i want to do one particular cluster...?? how can i do that..!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:59:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908499#M106636</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T14:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908504#M106639</link>
      <description>&lt;P&gt;You can put your cluster name after the Get-Cluster command in the first line as follows:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;$ToolsAutoSettingsVMs = Get-Cluster &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"CLUSTERNAMEHERE"&lt;/STRONG&gt; &lt;/FONT&gt;| Get-VM | Sort | Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Config.Tools.ToolsUpgradePolicy") | Select -Property Name, @{N="Configured OS";E={$_.Config.GuestFullName}}, @{N="Running OS";E={$_.Guest.GuestFullName}}, @{N='ToolsUpgradePolicy';E={$_.Config.Tools.ToolsUpgradePolicy }}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 11 May 2022 15:20:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908504#M106639</guid>
      <dc:creator>CNorris_Const</dc:creator>
      <dc:date>2022-05-11T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908506#M106640</link>
      <description>&lt;P&gt;Hi Norris ...Thanks a lot ....you made my day..!!&lt;/P&gt;&lt;P&gt;I will try the below script if any issues ..i will keep you posted.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Kumar.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:25:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908506#M106640</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908509#M106642</link>
      <description>&lt;P&gt;Glad to hear it! You're very welcome. Look forward to hearing back on how it goes &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; -- Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:34:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908509#M106642</guid>
      <dc:creator>CNorris_Const</dc:creator>
      <dc:date>2022-05-11T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908517#M106645</link>
      <description>&lt;P&gt;Hi Norris,&lt;/P&gt;&lt;P&gt;One more help. Instead of cluster name...can I change to one Single ESXI HOST there ..??&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ToolsAutoSettingsVMs = Get-Host&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"ESXIHOST NAME HERE"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;| Get-VM | Sort | Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Config.Tools.ToolsUpgradePolicy") | Select -Property Name, @{N="Configured OS";E={$_.Config.GuestFullName}}, @{N="Running OS";E={$_.Guest.GuestFullName}}, @{N='ToolsUpgradePolicy';E={$_.Config.Tools.ToolsUpgradePolicy }}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Whether this works..??&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kumar.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:57:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908517#M106645</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T15:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908519#M106646</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;SPAN&gt;$ToolsAutoSettingsVMs = Get-&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;VM&lt;/STRONG&gt;&lt;/FONT&gt;Host&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"ESXIHOST NAME HERE"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;| Get-VM | Sort | Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Config.Tools.ToolsUpgradePolicy") | Select -Property Name, @{N="Configured OS";E={$_.Config.GuestFullName}}, @{N="Running OS";E={$_.Guest.GuestFullName}}, @{N='ToolsUpgradePolicy';E={$_.Config.Tools.ToolsUpgradePolicy }}&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 11 May 2022 16:00:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908519#M106646</guid>
      <dc:creator>CNorris_Const</dc:creator>
      <dc:date>2022-05-11T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: required powercli script for Mass update of VMtools manually</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908522#M106649</link>
      <description>&lt;P&gt;Hi Norris,&lt;/P&gt;&lt;P&gt;Thanks a lot ...!&lt;/P&gt;&lt;P&gt;I will check and updated you !&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:06:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/required-powercli-script-for-Mass-update-of-VMtools-manually/m-p/2908522#M106649</guid>
      <dc:creator>prasanna22kumar</dc:creator>
      <dc:date>2022-05-11T16:06:14Z</dc:date>
    </item>
  </channel>
</rss>

