<?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>article what's the PowerCLI commands for the following task? in VMware PowerCLI Documents</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/ta-p/2776084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a newbie of Vmware. Recently I am asked to&amp;nbsp; help with Vmware CLI commands, for example:&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;Create add block devices (datastore or RDM) to VM&lt;/P&gt;&lt;P class="MsoNormal"&gt;Remove block device (datastore or RDM) from VM&lt;/P&gt;&lt;P class="MsoNormal"&gt;Remove datastore&lt;/P&gt;&lt;P class="MsoNormal"&gt;Add datastore&lt;/P&gt;&lt;P class="MsoNormal"&gt;Add vmdk to a VM&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;Create CIFS share via CLI&lt;/P&gt;&lt;P class="MsoNormal"&gt;Create NFS export via CLI&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;I installed Vsphere PowerCLI as well as Vsphere CLI on my PC ...&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;but would you please help point the right commands since there are so many cmdlet.&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;btw: we are using ESXi 5.0.0.&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;one the question: can I finish all of the above with only Vsphere PowerCLI? I don't see the cmdlet related to filesystem in Vsphere PowerCLI............ &lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;many thanks in advance:smileyplain:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 03:19:40 GMT</pubDate>
    <dc:creator>Ivy_Yang</dc:creator>
    <dc:date>2012-08-20T03:19:40Z</dc:date>
    <item>
      <title>what's the PowerCLI commands for the following task?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/ta-p/2776084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a newbie of Vmware. Recently I am asked to&amp;nbsp; help with Vmware CLI commands, for example:&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;Create add block devices (datastore or RDM) to VM&lt;/P&gt;&lt;P class="MsoNormal"&gt;Remove block device (datastore or RDM) from VM&lt;/P&gt;&lt;P class="MsoNormal"&gt;Remove datastore&lt;/P&gt;&lt;P class="MsoNormal"&gt;Add datastore&lt;/P&gt;&lt;P class="MsoNormal"&gt;Add vmdk to a VM&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;Create CIFS share via CLI&lt;/P&gt;&lt;P class="MsoNormal"&gt;Create NFS export via CLI&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;I installed Vsphere PowerCLI as well as Vsphere CLI on my PC ...&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;but would you please help point the right commands since there are so many cmdlet.&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;btw: we are using ESXi 5.0.0.&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;one the question: can I finish all of the above with only Vsphere PowerCLI? I don't see the cmdlet related to filesystem in Vsphere PowerCLI............ &lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;many thanks in advance:smileyplain:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 03:19:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/ta-p/2776084</guid>
      <dc:creator>Ivy_Yang</dc:creator>
      <dc:date>2012-08-20T03:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: what's the PowerCLI commands for the following task?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776085#M71</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;adding block devices to the vm.&lt;/P&gt;&lt;P class="p1"&gt;-------------- Example 1 --------------&lt;/P&gt;&lt;P class="p2"&gt;$vm = Get-VM VM&lt;/P&gt;&lt;P class="p3"&gt;&lt;/P&gt;&lt;P class="p2"&gt;$vm | New-HardDisk -CapacityKB 10000 -Persistence persistent&lt;/P&gt;&lt;P class="p1"&gt;Adds to the VM virtual machine a new hard disk in a persistent mode with capacity of 1000 KB.&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;-------------- Example 2 --------------&lt;/P&gt;&lt;P class="p2"&gt;$deviceName = ($host | Get-ScsiLun | Where {$_.CanonicalName -match "naa"})[0].ConsoleDeviceName &lt;/P&gt;&lt;P class="p3"&gt;&lt;/P&gt;&lt;P class="p2"&gt;New-HardDisk -VM $vm -DiskType RawPhysical -DeviceName $deviceName&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Obtains a valid device name for Raw Disk Mapping. Then the command creates a RDM hard disk for the specified virtual machine, with the obtained device name.&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Remove block device from the VM&lt;/P&gt;&lt;P class="p1"&gt;remove-harddisk&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;To add datastore&lt;/P&gt;&lt;P class="p1"&gt;add-datastore&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;To remove datastore&lt;/P&gt;&lt;P class="p1"&gt;remove-datastore&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Please refer to &lt;A href="http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/index.html"&gt;http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/index.html&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 09:35:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776085#M71</guid>
      <dc:creator>avarude</dc:creator>
      <dc:date>2012-08-20T09:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: what's the PowerCLI commands for the following task?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776086#M72</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks! Avarude! &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.vmware.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 02:58:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776086#M72</guid>
      <dc:creator>Ivy_Yang</dc:creator>
      <dc:date>2012-08-21T02:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: what's the PowerCLI commands for the following task?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776087#M73</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a new questio:&lt;/P&gt;&lt;P&gt;Vcenter-----&amp;gt;home----&amp;gt;inventory---&amp;gt;host and Clusters, I select an ESX host and -------&amp;gt;configuration-----&amp;gt;storage adapter,&amp;nbsp; we can see many LUNs from storage.&lt;/P&gt;&lt;P&gt;We usually right click the "Name" to change the name to match with what we see in stroage side.&lt;/P&gt;&lt;P&gt;&lt;IMG src="E:\1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;soI am wondering if there is any commans we can change the device name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried get-ScsiLun....but not working.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would you help please point the right command?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 03:04:35 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776087#M73</guid>
      <dc:creator>Ivy_Yang</dc:creator>
      <dc:date>2012-08-21T03:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: what's the PowerCLI commands for the following task?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776088#M74</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you would like to change only the DisplayName?&amp;nbsp; so that's easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-Datastore -name xxxx | Set-Datastore -name xxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:18:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/what-s-the-PowerCLI-commands-for-the-following-task/tac-p/2776088#M74</guid>
      <dc:creator>Madmax01</dc:creator>
      <dc:date>2012-10-22T14:18:41Z</dc:date>
    </item>
  </channel>
</rss>

