<?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 Script Failing to Run in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865711#M103197</link>
    <description>&lt;P&gt;I am at a loss, I noticed a script I use to deploy new VMs seems to have started to fail to run automatically so I started to dig into it.&amp;nbsp; If I tell the script to run all it shows is this:&lt;BR /&gt;&lt;BR /&gt;[root@vmware-util ~]# pwsh /home/scripts/actions-regular/Automation/VM-DeploymentBuild1.ps1&lt;BR /&gt;Exception: The VMware.ImageBuilder module is not currently supported on the Core edition of PowerShell.&lt;/P&gt;&lt;P&gt;If I take the content of the script and paste it into powershell it works fine.&amp;nbsp; I am not sure what I am missing today. Here is the version I am running in case that is a problem:&lt;/P&gt;&lt;P&gt;PS /root&amp;gt; Get-PowerCLIVersion&lt;/P&gt;&lt;P&gt;PowerCLI Version&lt;BR /&gt;----------------&lt;BR /&gt;VMware PowerCLI 12.2.0 build 17538434&lt;BR /&gt;---------------&lt;BR /&gt;Component Versions&lt;BR /&gt;---------------&lt;BR /&gt;VMware Common PowerCLI Component 12.3 build 17838947&lt;BR /&gt;VMware Cis Core PowerCLI Component PowerCLI Component 12.3 build 17839331&lt;BR /&gt;VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.3 build 17839688&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 15:53:05 GMT</pubDate>
    <dc:creator>pamiller21</dc:creator>
    <dc:date>2021-09-07T15:53:05Z</dc:date>
    <item>
      <title>Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865711#M103197</link>
      <description>&lt;P&gt;I am at a loss, I noticed a script I use to deploy new VMs seems to have started to fail to run automatically so I started to dig into it.&amp;nbsp; If I tell the script to run all it shows is this:&lt;BR /&gt;&lt;BR /&gt;[root@vmware-util ~]# pwsh /home/scripts/actions-regular/Automation/VM-DeploymentBuild1.ps1&lt;BR /&gt;Exception: The VMware.ImageBuilder module is not currently supported on the Core edition of PowerShell.&lt;/P&gt;&lt;P&gt;If I take the content of the script and paste it into powershell it works fine.&amp;nbsp; I am not sure what I am missing today. Here is the version I am running in case that is a problem:&lt;/P&gt;&lt;P&gt;PS /root&amp;gt; Get-PowerCLIVersion&lt;/P&gt;&lt;P&gt;PowerCLI Version&lt;BR /&gt;----------------&lt;BR /&gt;VMware PowerCLI 12.2.0 build 17538434&lt;BR /&gt;---------------&lt;BR /&gt;Component Versions&lt;BR /&gt;---------------&lt;BR /&gt;VMware Common PowerCLI Component 12.3 build 17838947&lt;BR /&gt;VMware Cis Core PowerCLI Component PowerCLI Component 12.3 build 17839331&lt;BR /&gt;VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.3 build 17839688&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:53:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865711#M103197</guid>
      <dc:creator>pamiller21</dc:creator>
      <dc:date>2021-09-07T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865715#M103198</link>
      <description>&lt;P&gt;Assuming that script is using the vmware.imagebuilder module, you'll need to run that particular script in "Windows Powershell" with vmware.powercli module installed.&lt;/P&gt;&lt;P&gt;Powershell Core is OS-agnostic version that not all modules have been ported to.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 16:03:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865715#M103198</guid>
      <dc:creator>Zsoldier</dc:creator>
      <dc:date>2021-09-07T16:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865718#M103199</link>
      <description>&lt;P&gt;That is the confusing part, if I copy all the content of the script and paste it into the powershell window it all works, no errors.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 16:11:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865718#M103199</guid>
      <dc:creator>pamiller21</dc:creator>
      <dc:date>2021-09-07T16:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865801#M103201</link>
      <description>&lt;P&gt;I uninstalled some of the modules that I don't need and now it works.&amp;nbsp; Thank you for looking into this still!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 23:39:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865801#M103201</guid>
      <dc:creator>pamiller21</dc:creator>
      <dc:date>2021-09-07T23:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865837#M103203</link>
      <description>&lt;P&gt;Just a warning for future readers of this thread.&lt;BR /&gt;&lt;BR /&gt;It is highly unlikely that uninstalling a module fixes the issue that the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;VMware.ImageBuilder&lt;/STRONG&gt; module is not supported on PowerShell v6 or higher&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7C3D0D4F3D0C13B20C3EB7851BC0A38B/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 07:47:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2865837#M103203</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2021-09-08T07:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2943006#M109469</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/FONT&gt;: since &lt;STRONG&gt;PowerCLI 13.0&lt;/STRONG&gt; the ImageBuilder module is supported on all PS platforms and versions.&lt;BR /&gt;See&amp;nbsp;&lt;A href="https://blogs.vmware.com/PowerCLI/2022/11/powercli-13-is-now-ga.html" target="_blank" rel="noopener"&gt;PowerCLI 13 is now GA!&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 20:18:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2943006#M109469</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-12-08T20:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script Failing to Run</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2987330#M113261</link>
      <description>&lt;P&gt;We are seeing that even with PowerCLI 13.1 that ImageBuilder still requires Windows PowerShell.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenFB_0-1695143365602.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/103586iAB8DB262ACBFDDFA/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="BenFB_0-1695143365602.png" alt="BenFB_0-1695143365602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 17:09:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-Failing-to-Run/m-p/2987330#M113261</guid>
      <dc:creator>BenFB</dc:creator>
      <dc:date>2023-09-19T17:09:34Z</dc:date>
    </item>
  </channel>
</rss>

