更新时间:2021-07-19 18:22:52
coverpage
Credits
Learning PowerCLI
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Introduction to PowerCLI
Downloading and installing PowerCLI
Modifying the PowerShell execution policy
Connecting and disconnecting servers
Using the credential store
Retrieving a list of all of your virtual machines
Retrieving a list of all of your hosts
Summary
Chapter 2. Learning Basic PowerCLI Concepts
Using the Get-Command Get-Help and Get-Member cmdlets
Using providers and PSDrives
Using arrays and hash tables
Creating calculated properties
Using raw API objects with ExtensionData or Get-View
Extending PowerCLI objects with the New-VIProperty cmdlet
Working with vSphere folders
Chapter 3. Working with Objects in PowerShell
Using objects properties and methods
Expanding variables and subexpressions in strings
Using here-strings
Using the pipeline
Using the PowerShell object cmdlets
Creating your own objects
Using COM objects
Chapter 4. Managing vSphere Hosts with PowerCLI
Adding a host to a VMware vCenter Server
Enabling and disabling maintenance mode
Working with host profiles
Working with host services
Configuring the host firewall
Configuring vSphere Image Builder and Auto Deploy
Using esxcli from PowerCLI
Using the vSphere CLI commands from PowerCLI
Removing a host from the VMware vCenter Server
Chapter 5. Managing Virtual Machines with PowerCLI
Creating a virtual machine
Registering a virtual machine
Using OS customization specifications
Starting and stopping a virtual machine
Modifying the settings of a virtual machine
Converting a virtual machine into a template
Moving a virtual machine to another folder host cluster resource pool or datastore
Updating the VMware Tools
Upgrading virtual machine compatibility
Using snapshots
Running commands on the guest OS
Configuring Fault Tolerance
Opening the console of a virtual machine
Removing a virtual machine
Chapter 6. Managing Virtual Networks with PowerCLI
Using vSphere Standard Switches
Using host network adapters
Using standard port groups
Using vSphere Distributed Switches
Removing vSphere Distributed Switches
Using distributed virtual port groups
Configuring host networking
Configuring the network of a virtual machine
Chapter 7. Managing Storage with PowerCLI
Rescanning for new storage devices
Creating datastores
Retrieving datastores
Setting the multipathing policy
Configuring the vmhba paths to a SCSI device
Working with Raw Device Mappings
Configuring Storage I/O Control
Configuring Storage DRS
Upgrading datastores to VMFS-5
Removing datastores
Chapter 8. Managing High Availability and Clustering with PowerCLI
Creating vSphere HA and DRS clusters
Retrieving clusters
Modifying cluster settings
Moving hosts to clusters
Moving clusters
Using DRS rules
Using DRS recommendations
Using resource pools
Using Distributed Power Management (DPM)
Removing clusters