Scripting using powerCLI Scripts

ⅰ亾dé卋堺 提交于 2019-12-31 07:28:22

问题


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.



来源:https://stackoverflow.com/questions/5958503/scripting-using-powercli-scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!