Appendix A: All Scripts and Program Source

u01-01-9781597490597

In this appendix, we’ve compiled the key scripts cited in this book. You can use this appendix as a quick reference point to review these scripts.

Scripts from Chapter 3

The following demonstrates the instantiation of the VmConnectParams object in VBScript and how to set the properties listed earlier.

   Set objConnParams = CreateObject("VmCOM.VmConnectParams")

   objConnParams.hostname = "esxserver1"

   objConnParams.username = "adminuser1"

   objConnParams.password = "password1"

The following continues from the previous code example, adding the instantiation of the VmServerCtl object and connecting to the host ...

Get Scripting VMware Power Tools: Automating Virtual Infrastructure Administration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.