<?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: RuntimeException, FullyQualifiedErrorId : MethodNotFound while executing the script in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920118#M107528</link>
    <description>&lt;P&gt;You are a knowledge bank! Thanks a ton for this information.&lt;BR /&gt;&lt;BR /&gt;Kind regards.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jul 2022 12:31:55 GMT</pubDate>
    <dc:creator>yashatrevm</dc:creator>
    <dc:date>2022-07-23T12:31:55Z</dc:date>
    <item>
      <title>RuntimeException, FullyQualifiedErrorId : MethodNotFound while executing the script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920065#M107525</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I am trying to execute the following code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$vmName = Read-Host "Enter the VM Name or regex (VMname*) :"&lt;BR /&gt;$vmList = Get-VM $vmName&lt;/P&gt;&lt;P&gt;#Create new Virtual Machince Config Spec&lt;BR /&gt;$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec&lt;/P&gt;&lt;P&gt;#Write new config options to VMs&lt;BR /&gt;foreach ($vm in $vmList){&lt;BR /&gt;&lt;BR /&gt;$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec&lt;BR /&gt;$vmConfigSpec.tools = New-Object VMware.Vim.ToolsConfigInfo&lt;BR /&gt;$vmConfigSpec.tools.toolsUpgradePolicy = "upgradeAtPowerCycle"&lt;/P&gt;&lt;P&gt;$vm.ReconfigVM_Task($vmConfigSpec)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;======&lt;BR /&gt;&lt;BR /&gt;However, when I execute this code, I hit the following :&lt;BR /&gt;&lt;BR /&gt;=====&lt;/P&gt;&lt;P&gt;Method invocation failed because [VMware.VimAutomation.ViCore.Impl.V1.VM.UniversalVirtualMachineImpl] does not contain a method named 'ReconfigVM_Task'.&lt;BR /&gt;At C:\Users\yash.atre\MyScripts\1_test.ps1:14 char:2&lt;BR /&gt;+ $vm.ReconfigVM_Task($vmConfigSpec)&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (:) [], RuntimeException&lt;BR /&gt;+ FullyQualifiedErrorId : MethodNotFound&lt;/P&gt;&lt;P&gt;=====&lt;BR /&gt;&lt;BR /&gt;The closest understanding to which I could come is that it might be because I am handling multiple VMs starting with same text, however, that is a requirement. I would greatly appriciate if someone could help me fix this issue.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 03:14:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920065#M107525</guid>
      <dc:creator>yashatrevm</dc:creator>
      <dc:date>2022-07-23T03:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeException, FullyQualifiedErrorId : MethodNotFound while executing the script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920080#M107526</link>
      <description>&lt;P&gt;You are calling a vSphere method of the &lt;A href="https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.VirtualMachine.html" target="_blank" rel="noopener"&gt;VirtualMAchine&lt;/A&gt; object, while the object you are using is a .NET object returned by Get-VM.&lt;BR /&gt;The .NET object maps to the vSphere object via the ExtensionData property.&lt;BR /&gt;You could do&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$vm.ExtensionData.ReconfigVM_Task($vmConfigSpec)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 23 Jul 2022 06:05:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920080#M107526</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-07-23T06:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeException, FullyQualifiedErrorId : MethodNotFound while executing the script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920118#M107528</link>
      <description>&lt;P&gt;You are a knowledge bank! Thanks a ton for this information.&lt;BR /&gt;&lt;BR /&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 12:31:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/RuntimeException-FullyQualifiedErrorId-MethodNotFound-while/m-p/2920118#M107528</guid>
      <dc:creator>yashatrevm</dc:creator>
      <dc:date>2022-07-23T12:31:55Z</dc:date>
    </item>
  </channel>
</rss>

