<?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: Script to list VM Network Adapter Type, exporting issue in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344065#M4269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, take out the Where-clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 22:14:21 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2012-03-23T22:14:21Z</dc:date>
    <item>
      <title>Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344061#M4265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="jive-rendered-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a PowerCLI script to list network adapters that are NOT VMXNet3.&amp;nbsp; The syntax works fine in PowerCLI however the Export-csv command is creating a 0k csv file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-VM | Get-NetworkAdapter | Where-object {$_.Type -ne "Vmxnet3"} | foreach ($_) {Write-Host $_.Parent.Name "("$_.Name") type:" $_.Type} | export-Csv&amp;nbsp; c:\Network_Interface.csv -NoTypeInformation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results look like:&lt;/P&gt;&lt;P&gt;VM1 ( Network adapter 1 ) type: Flexible&lt;BR /&gt;VM2 ( Network adapter 1 ) type: e1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ben &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 19:39:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344061#M4265</guid>
      <dc:creator>BenLiebowitz</dc:creator>
      <dc:date>2012-03-22T19:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344062#M4266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To export you better use the Select-Object cmdlet.&lt;/P&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;Get-VM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; | &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;Get-NetworkAdapter&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; | 
&lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;Where-object&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; {&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.Type &lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;-ne&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Vmxnet3&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;} | 
&lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;Select&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; @{N&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;VM&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;E&lt;/SPAN&gt;&lt;SPAN style="color: #FF0000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.Parent.Name}},Name,Type |
&lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-weight: bold;"&gt;export-Csv&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;c:\Network_Interface.csv&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #5F9EA0; font-style: italic;"&gt;-NoTypeInformation&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;
 &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 19:45:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344062#M4266</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-03-22T19:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344063#M4267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, thank you for the prompt reply!&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 19:56:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344063#M4267</guid>
      <dc:creator>BenLiebowitz</dc:creator>
      <dc:date>2012-03-22T19:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344064#M4268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LucD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Is it possible to pull all the network adaptor&amp;nbsp; type rather than "VMNXT3" specific.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vmguy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 21:36:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344064#M4268</guid>
      <dc:creator>vmhyperv</dc:creator>
      <dc:date>2012-03-23T21:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344065#M4269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, take out the Where-clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 22:14:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344065#M4269</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-03-23T22:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344066#M4270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied and pasted the script into Notepad and removed the "Where" and "Export-Csv" lines so that I could simplify the script. Turns out I can get the script to echo a VM name under the "VM" column. Do you have any thoughts on what I might be doing wrong? I'm using PowerCLI 5.0, build 435427.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-VM | Get-NetworkAdapter | Select @{N="VM";E={$_.Parent.Name}},Name,Type,WakeOnLan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 17:18:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344066#M4270</guid>
      <dc:creator>kjthacker</dc:creator>
      <dc:date>2012-04-04T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344067#M4271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this from the PowerCLI prompt or a GUI ?&lt;/P&gt;&lt;P&gt;Could it be that the console width is too small ?&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;BLOCKQUOTE&gt;Get-VM | Get-NetworkAdapter | Select @{N="VM";E={$_.Parent.Name}},Name,Type,WakeOnLan | fl&lt;/BLOCKQUOTE&gt;&lt;P&gt;This will display the requested properties in a list format (Format-List).&lt;/P&gt;&lt;P&gt;Or you could diminish the width of the columns&lt;/P&gt;&lt;BLOCKQUOTE&gt;Get-VM | Get-NetworkAdapter | Select @{N="VM";E={$_.Parent.Name}},Name,Type,WakeOnLan | ft -Autosize&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And you could also try&lt;/P&gt;&lt;BLOCKQUOTE&gt;Get-VM | Get-NetworkAdapter | Select @{N="VM";E={$_.Parent.Name}},Name,Type,WakeOnLan | Out-Default&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 20:15:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344067#M4271</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-04-04T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344068#M4272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Luc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must have been doing something wrong yesterday. Today, the command works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 15:27:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344068#M4272</guid>
      <dc:creator>kjthacker</dc:creator>
      <dc:date>2012-04-05T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script to list VM Network Adapter Type, exporting issue</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344069#M4273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben! I know this is an old post but I found it useful for a script I am testing. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:55:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-list-VM-Network-Adapter-Type-exporting-issue/m-p/344069#M4273</guid>
      <dc:creator>ThomasLooper</dc:creator>
      <dc:date>2016-10-03T16:55:37Z</dc:date>
    </item>
  </channel>
</rss>

