Scripting using powerCLI Scripts

2020-05-08 08:28发布

问题:

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?

回答1:

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:

  • Getting Started
  • PowerCLI home
  • Community Discussions
  • Online Reference

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++.



回答2:

@JPBlanc I use PowerGUI Script Editor and it works great. Make sure to add it to your sendto folder so you can just drop highlighted scripts right into the editor.