<?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: WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values. in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920322#M107532</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What is the solution to pass multiple VM in txt file ?&lt;/P&gt;&lt;P&gt;Thanks for return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 09:33:33 GMT</pubDate>
    <dc:creator>Chris_95</dc:creator>
    <dc:date>2022-07-25T09:33:33Z</dc:date>
    <item>
      <title>WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/477287#M13200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running the script below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#import list of servers from text file&lt;/P&gt;&lt;P&gt;$Servers = Get-Content -Path “c:\VMlist.txt” &lt;/P&gt;&lt;P&gt;# Take snapshot of each vm&lt;/P&gt;&lt;P&gt;foreach($Server in $Servers){&lt;/P&gt;&lt;P&gt;Get-VM -Name $Server | New-Snapshot -Name "Take 2" -Description "blah blah blah" # -Quiesce -Memory&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recieve this error "WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway around this or is thee a better way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 18:57:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/477287#M13200</guid>
      <dc:creator>jamesreinke2</dc:creator>
      <dc:date>2019-04-04T18:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/477288#M13201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The message might be a bit misleading.&lt;/P&gt;&lt;P&gt;The VM parameter is not obsolete, only the possibility to pass multiple values (an array) on the parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 19:26:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/477288#M13201</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2019-04-04T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920322#M107532</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What is the solution to pass multiple VM in txt file ?&lt;/P&gt;&lt;P&gt;Thanks for return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 09:33:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920322#M107532</guid>
      <dc:creator>Chris_95</dc:creator>
      <dc:date>2022-07-25T09:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920330#M107533</link>
      <description>&lt;P&gt;Not sure what you mean?&lt;BR /&gt;On the Get-VM Name parameter you can still pass an array of names.&lt;BR /&gt;On the New-Snapshot VM parameter you can only pass 1 VM.&lt;BR /&gt;But if you are using both in a pipeline, the New-Snapshot will only get 1 VM object per call.&lt;BR /&gt;&lt;BR /&gt;The following for example should still work.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Get-VM -Name (Get-Content -Path .\vmnames.txt) |
New-Snapshot -Name Test&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 10:28:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920330#M107533</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2022-07-25T10:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920357#M107539</link>
      <description>&lt;P&gt;Hello again LuD !&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;In fact : many days to try to understand why my very simple script didn't work :&lt;/P&gt;&lt;P&gt;$vmlist = Get-Content -Path "C:\Powercli\Powercli_VMWARE\Scripts\Checked\vmnames.txt"&lt;BR /&gt;foreach($vmname in $vmlist){&lt;BR /&gt;Get-VM -Name $vmname }&lt;/P&gt;&lt;P&gt;The error message : (see many many times in forum...)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_95_0-1658752631376.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/96384iA59A50A5C90A7F5F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Chris_95_0-1658752631376.png" alt="Chris_95_0-1658752631376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The real reason of this trouble IS NOT THE SCRIPT but the file format about... TXT FILE !&lt;/P&gt;&lt;P&gt;YES be careful that the response file is well written in UTF-8 FORMAT !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:41:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/WARNING-Parameter-VM-is-obsolete-This-parameter-no-longer/m-p/2920357#M107539</guid>
      <dc:creator>Chris_95</dc:creator>
      <dc:date>2022-07-25T12:41:08Z</dc:date>
    </item>
  </channel>
</rss>

