<?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 Running a PowerCLI Script Non-Interactively in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-Script-Non-Interactively/m-p/2919456#M107465</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to write a PowerShell script using PowerCLI modules that retrieves the following data automatically, writes them to registry keys, and launches a program that reads the data from the registry keys:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;List of VM Hosts&lt;/LI&gt;&lt;LI&gt;List of Datastores&lt;/LI&gt;&lt;LI&gt;List of Virtual Networks&lt;/LI&gt;&lt;LI&gt;List of VM Templates&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This script is not meant to be run interactively, and due to compliance reasons, I am not allowed to use the VICredentialStore. I am also not allowed to store credentials in a password-key file.&lt;/P&gt;&lt;P&gt;I currently have the script working interactively, where it requests the user for credentials upon execution. How do I convert the script, mainly the Connect-VIServer part, to run non-interactively with the restrictions above?&lt;/P&gt;&lt;P&gt;A quick Google search suggested using a group managed service account (gMSA), but PowerCLI (and vSphere) does not seem to support this. Are there plans to add support for gMSA in the future?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerShell and PowerCLI details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PSVersion: 5.1.14393.5066&lt;/LI&gt;&lt;LI&gt;PowerCLI Version:&amp;nbsp;VMware PowerCLI 12.0.0 build 15947286&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 20 Jul 2022 02:36:12 GMT</pubDate>
    <dc:creator>KLGSO</dc:creator>
    <dc:date>2022-07-20T02:36:12Z</dc:date>
    <item>
      <title>Running a PowerCLI Script Non-Interactively</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-Script-Non-Interactively/m-p/2919456#M107465</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to write a PowerShell script using PowerCLI modules that retrieves the following data automatically, writes them to registry keys, and launches a program that reads the data from the registry keys:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;List of VM Hosts&lt;/LI&gt;&lt;LI&gt;List of Datastores&lt;/LI&gt;&lt;LI&gt;List of Virtual Networks&lt;/LI&gt;&lt;LI&gt;List of VM Templates&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This script is not meant to be run interactively, and due to compliance reasons, I am not allowed to use the VICredentialStore. I am also not allowed to store credentials in a password-key file.&lt;/P&gt;&lt;P&gt;I currently have the script working interactively, where it requests the user for credentials upon execution. How do I convert the script, mainly the Connect-VIServer part, to run non-interactively with the restrictions above?&lt;/P&gt;&lt;P&gt;A quick Google search suggested using a group managed service account (gMSA), but PowerCLI (and vSphere) does not seem to support this. Are there plans to add support for gMSA in the future?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerShell and PowerCLI details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PSVersion: 5.1.14393.5066&lt;/LI&gt;&lt;LI&gt;PowerCLI Version:&amp;nbsp;VMware PowerCLI 12.0.0 build 15947286&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 20 Jul 2022 02:36:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-Script-Non-Interactively/m-p/2919456#M107465</guid>
      <dc:creator>KLGSO</dc:creator>
      <dc:date>2022-07-20T02:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI Script Non-Interactively</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-Script-Non-Interactively/m-p/2919464#M107467</link>
      <description>&lt;P&gt;Since this looks like a feature request, I would suggest creating an "Idea" on&amp;nbsp;&lt;A href="https://powercli.ideas.aha.io/" target="_blank"&gt;VMware PowerCLI (aha.io)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 05:13:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-Script-Non-Interactively/m-p/2919464#M107467</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-07-20T05:13:01Z</dc:date>
    </item>
  </channel>
</rss>

