使用 powerCLI 脚本编写脚本 [英] Scripting using powerCLI Scripts

查看:40
本文介绍了使用 powerCLI 脚本编写脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 powerCLI 脚本编写脚本以使用记事本自动创建 VM?或任何 powerCLI 开发工具?

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

如何从头开始学习 PowerCLI 脚本以自动创建 VM?

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

推荐答案

大约两个月前,我开始学习 powershell,因为需要使用 PowerCLI :).PowerCLI 是编写 vmware vSphere 自动化脚本的最佳选择.

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.

当您启动 PowerCLI 命令行工具时,您可以像在 powershell 中一样在那里工作.此外,您可以将所有包含的 cmdlet(超过 200 个)用于 vmware vSphere 自动化.

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.

使用 PowerCLI 编写脚本与使用 Powershell 编写脚本完全相同.试试吧!

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

开始:

注意你不会在 stackoverflow 上找到很多关于 PowerCLI 的回答者(我认为,无论如何,除非我和其他人).@JPBlanc 创建了一个关于它的新标签的事实就是一个证明.如果您真的需要脚本问题的支持,请直接访问 vmware 社区,您会在那里找到一切.

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.

关于记事本的注意事项

不要使用记事本.使用 Powershell ISE、VIM 或 Notepad++ 之类的工具.

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

这篇关于使用 powerCLI 脚本编写脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆