Search code examples
powershellvirtual-machinevirtualizationpowercli

Scripting using powerCLI Scripts


Is it possible to do scripting using powerCLI scripts to automate VM creation using notepad? or any powerCLI developing tool?

How to go about studying PowerCLI scripting from scratch to automate VM creation?


Solution

  • More or less two months ago, I started learning powershell because the needing of using PowerCLI :). PowerCLI is the best choice for scripting vmware vsphere automation.

    When you start PowerCLI command line tool you can work there exactly as you were inside the powershell. Furthermore, you can use all the included cmdlets (more than 200) for vmware vsphere automation.

    Scripting with PowerCLI is exactly the same as scripting with Powershell. Try it!

    To get started:


    NOTE You won't find here at stackoverflow a lot of answerers about PowerCLI (I think and, anyway, unless me and someone other). The fact that @JPBlanc as created a new tag about it is a proof. If you really want support in your scripting questions go directly to the vmware community, you will find everything there.


    NOTE ABOUT NOTEPAD

    DO NOT USE NOTEPAD. Use something like Powershell ISE or VIM or Notepad++.