<?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 Scan-Inventory Question in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113310#M468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to scan each ESX server in a vCenter server one by one with a powershell script using the Scan-Inventory cmdlet.  I was thinking I could do something like this "Scan-Inventory -Entity " where it would Scan the inventory, but only scan ESX servers and nothing else.  Looks like "-Entity" is just the name of an entity.  Anyway, trying to accomplish this with the below, but the expected output is not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="vSphere PowerCLI"&gt;&lt;/A&gt; C:\Program Files\VMware\Infrastructure\VIToolkitForWindows&amp;gt; get-vmhost | select -ExpandP&lt;/P&gt;&lt;P&gt;roperty Name | ForEach-Object {Scan-Inventory}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cmdlet Scan-Inventory at command pipeline position 1&lt;/P&gt;&lt;P&gt;Supply values for the following parameters:&lt;/P&gt;&lt;P&gt;Entity[0]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if scan-inventory doesn't accept pipe info?  Anyone know why this keeps popping up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;cmdlet Scan-Inventory at command pipeline position 1&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Supply values for the following parameters:&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Entity[0]:&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 18:48:12 GMT</pubDate>
    <dc:creator>mark_chuman</dc:creator>
    <dc:date>2010-04-09T18:48:12Z</dc:date>
    <item>
      <title>Scan-Inventory Question</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113310#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to scan each ESX server in a vCenter server one by one with a powershell script using the Scan-Inventory cmdlet.  I was thinking I could do something like this "Scan-Inventory -Entity " where it would Scan the inventory, but only scan ESX servers and nothing else.  Looks like "-Entity" is just the name of an entity.  Anyway, trying to accomplish this with the below, but the expected output is not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="vSphere PowerCLI"&gt;&lt;/A&gt; C:\Program Files\VMware\Infrastructure\VIToolkitForWindows&amp;gt; get-vmhost | select -ExpandP&lt;/P&gt;&lt;P&gt;roperty Name | ForEach-Object {Scan-Inventory}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cmdlet Scan-Inventory at command pipeline position 1&lt;/P&gt;&lt;P&gt;Supply values for the following parameters:&lt;/P&gt;&lt;P&gt;Entity[0]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if scan-inventory doesn't accept pipe info?  Anyone know why this keeps popping up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;cmdlet Scan-Inventory at command pipeline position 1&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Supply values for the following parameters:&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Entity[0]:&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:48:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113310#M468</guid>
      <dc:creator>mark_chuman</dc:creator>
      <dc:date>2010-04-09T18:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scan-Inventory Question</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113311#M469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this may add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scan-Inventory : Cannot process argument transformation on parameter 'Entity'. Strings as pipeline input a&lt;/P&gt;&lt;P&gt;re not supported.&lt;/P&gt;&lt;P&gt;At line:1 char:58&lt;/P&gt;&lt;P&gt;+ get-vmhost | select -ExpandProperty Name | Scan-Inventory &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;    + CategoryInfo          : InvalidData: (esxname.domain.com:PSObject) &lt;A href="https://communities.vmware.com/Scan-Inventory"&gt;&lt;/A&gt;, Parameter&lt;/P&gt;&lt;P&gt;   Bindin...mationException&lt;/P&gt;&lt;P&gt;    + FullyQualifiedErrorId : ParameterArgumentTransformationError,VMware.VumAutomation.Commands.ScanInve&lt;/P&gt;&lt;P&gt;   ntory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i run this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="vSphere PowerCLI"&gt;&lt;/A&gt; C:\Program Files\VMware\Infrastructure\VIToolkitForWindows&amp;gt; get-vmhost | select -ExpandP&lt;/P&gt;&lt;P&gt;roperty Name | Scan-Inventory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I get the above error for each ESX host name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:05:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113311#M469</guid>
      <dc:creator>mark_chuman</dc:creator>
      <dc:date>2010-04-09T19:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Scan-Inventory Question</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113312#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked if others are interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-vmhost | ForEach-Object {Scan-Inventory -Entity $_.name}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It loops through and scans all ESX servers in the server you are connected to.  Scans one by one and shows percentage in the powershell console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:30:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113312#M470</guid>
      <dc:creator>mark_chuman</dc:creator>
      <dc:date>2010-04-09T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scan-Inventory Question</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113313#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pipe to the Scan-Inventory the objects returned by Get-VMHost cmdlet.&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;Get-VMHost | Scan-Inventory&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any specific reason, because you want to pass the entity's name to the Scan-Inventory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:35:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113313#M471</guid>
      <dc:creator>bbambalova</dc:creator>
      <dc:date>2010-04-09T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scan-Inventory Question</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113314#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that works - Thanks. It does kick off all the scans at the same time.  We have a huge environment 700+, so that would kill my vCenter servers.  Anyway you could take that and make it loop through one by one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:40:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113314#M472</guid>
      <dc:creator>mark_chuman</dc:creator>
      <dc:date>2010-04-09T19:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scan-Inventory Question</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113315#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To loop through all the the host one by one, you can try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;
foreach ($VMHost in Get-VMHost) { Scan-Inventory -Entity $VMHost }
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 22:07:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Scan-Inventory-Question/m-p/2113315#M473</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2010-04-09T22:07:26Z</dc:date>
    </item>
  </channel>
</rss>

