<?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: CLI command to connect\disconnect a VM's NIC in vSphere Command-Line Interface Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427764#M699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at these URLs&lt;/P&gt;&lt;P&gt;&lt;A href="https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc%2Fcli_manage_vms.10.7.html" title="https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc%2Fcli_manage_vms.10.7.html"&gt;VMware vSphere 5.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.vmware.com/support/developer/PowerCLI/PowerCLI41U1/html/Set-NetworkAdapter.html" title="https://www.vmware.com/support/developer/PowerCLI/PowerCLI41U1/html/Set-NetworkAdapter.html"&gt;Set-NetworkAdapter - vSphere PowerCLI Cmdlets Reference&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2017 06:35:19 GMT</pubDate>
    <dc:creator>vembutech1</dc:creator>
    <dc:date>2017-05-09T06:35:19Z</dc:date>
    <item>
      <title>CLI command to connect\disconnect a VM's NIC</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427763#M698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Can somebody please help me to understand the VMware CLI command to enable\disable (or connect\disconnect) the network adaptor of a VM (which can be done from vsphere client as shown below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="VM-NIC-connect-setting.jpg"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/72391i4CFF8A3E33D69AFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="VM-NIC-connect-setting.jpg" alt="VM-NIC-connect-setting.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 06:08:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427763#M698</guid>
      <dc:creator>Anand_Nandu</dc:creator>
      <dc:date>2017-05-09T06:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command to connect\disconnect a VM's NIC</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427764#M699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at these URLs&lt;/P&gt;&lt;P&gt;&lt;A href="https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc%2Fcli_manage_vms.10.7.html" title="https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc%2Fcli_manage_vms.10.7.html"&gt;VMware vSphere 5.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.vmware.com/support/developer/PowerCLI/PowerCLI41U1/html/Set-NetworkAdapter.html" title="https://www.vmware.com/support/developer/PowerCLI/PowerCLI41U1/html/Set-NetworkAdapter.html"&gt;Set-NetworkAdapter - vSphere PowerCLI Cmdlets Reference&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 06:35:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427764#M699</guid>
      <dc:creator>vembutech1</dc:creator>
      <dc:date>2017-05-09T06:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command to connect\disconnect a VM's NIC</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427765#M700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Did you ever find an answer to this question?&lt;/P&gt;&lt;P&gt;I need to start the NIC on a virtual machine via CLI since the Vsphere server is down and the VMWare client is unable to edit the Virtual machine.&lt;/P&gt;&lt;P&gt;The network adapter was disable on the Vcenter database server. &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:27:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427765#M700</guid>
      <dc:creator>troybailey</dc:creator>
      <dc:date>2020-02-21T16:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command to connect\disconnect a VM's NIC</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427766#M701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-VM ENTERVMNAME | Get-NetworkAdapter -Name "ENTERNETWORKADAPTER" | Set-NetworkAdapter -Connected:$false -StartConnected:$false&amp;nbsp;-Confirm:$false&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;That should do it, if you want to do it on all adapters on a VM then it would be as follows, this script wont ask for confirmation it will just go ahead and do it.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Get-VM ENTERVMNAME | Get-NetworkAdapter&amp;nbsp;| Set-NetworkAdapter -Connected:$false -StartConnected:$false&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px;"&gt;-Confirm:$false&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 17:14:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/CLI-command-to-connect-disconnect-a-VM-s-NIC/m-p/1427766#M701</guid>
      <dc:creator>MattHumphreys</dc:creator>
      <dc:date>2020-02-21T17:14:33Z</dc:date>
    </item>
  </channel>
</rss>

