VMware PowerCLI User's Guide
VMware PowerCLI User's Guide
Updated Information
Introduction to VMware PowerCLI
Microsoft PowerShell Basics
PowerShell Command-Line Syntax
PowerShell Pipelines
PowerShell Wildcards
PowerShell Common Parameters
PowerCLI Concepts
PowerCLI Modules
Interoperability Between the PowerCLI and VMware Cloud Director PowerCLI Modules
Retrieving vSphere Inventory Objects from Cloud Resources
Selecting Objects in PowerCLI
Providing Login Credentials
Running PowerCLI Cmdlets Asynchronously
Managing Default Server Connections
Customization Specification Objects in PowerCLI
Using ESXCLI with PowerCLI
PowerCLI Inventory Provider
PowerCLI Datastore Provider
PowerCLI About Articles
Installing VMware PowerCLI
Supported Operating Systems
Supported VMware Products
Supported PowerShell Versions
Install PowerCLI
Install PowerCLI Offline
Allow Execution of Local Scripts
Update PowerCLI
Uninstall PowerCLI
Configuring VMware PowerCLI
Configuring PowerCLI Response to Untrusted Certificates
Configure the PowerCLI Response to Untrusted Certificates
PowerCLI Trusted Certificate Store
Scoped Settings of vSphere PowerCLI
Configuring the Scope of the PowerCLI Settings
Priority of Settings Scopes in PowerCLI
PowerCLI Configuration Files
Configuring Customer Experience Improvement Program
Categories of Information That VMware Receives
Join the Customer Experience Improvement Program in PowerCLI
Managing vSphere with VMware PowerCLI
Connect to a vCenter Server System
Manage Virtual Machines on vSphere
Add a Standalone Host to a vCenter Server System
Set the License Key for a Host on vCenter Server
Activate Maintenance Mode for a Host on vCenter Server
Create vSphere Inventory Objects
Create Virtual Machines on vCenter Server Using an XML Specification File
Manage Virtual Machine Templates on vCenter Server
Create and Use Snapshots on vCenter Server
Update the Resource Configuration Settings of a Virtual Machine on vCenter Server
Get a List of Hosts on a vCenter Server System and View Their Properties
Change the Host Advanced Configuration Settings on vCenter Server
Move a Virtual Machine to a Different Host Using VMware vSphere vMotion
Move a Virtual Machine to a Different Datastore Using VMware vSphere Storage vMotion
Move a Virtual Machine to a Different vCenter Server System
Create a Host Profile on a vCenter Server System
Apply a Host Profile to a Host on vCenter Server
Manage Statistics and Statistics Intervals on vCenter Server
Modify the Settings of the NIC Teaming Policy for a Virtual Switch
Create a vApp on vCenter Server
Modify the Properties of a vApp
Export or Import vApps
Create an iSCSI Host Storage
Add Passthrough Devices to a Host and Virtual Machine
Create a Custom Property Based on an Extension Data Property
Create a Script-Based Custom Property for a vSphere Object
Apply a Customization Object to a Cloned Virtual Machine
Modify the Default NIC Mapping Object of a Customization Specification
Modify Multiple NIC Mapping Objects of a Customization Specification
Create Multiple Virtual Machines that Use Static IP Addresses
Create Multiple Virtual Machines with Two Network Adapters
Create a vSphere Role and Assign Permissions to a User
View Actions and Triggers for an Alarm on vCenter Server
Create Alarm Definitions on vCenter Server
Modify Alarm Definitions on vCenter Server
Create Alarm Actions and Triggers on vCenter Server
Remove Alarm Definitions and Actions
Create and Modify Advanced Settings for a Cluster
Modify the vCenter Server Email Configuration
Modify the vCenter Server SNMP Configuration
Use Esxtop to Get Information on the Virtual CPUs of a Virtual Machine
Filter vSphere Objects with Get-View
Populate a View Object with Get-View
Update the State of a Server-Side Object
Reboot a Host with Get-View
Modify the CPU Levels of a Virtual Machine with Get–View and Get–VIObjectByVIView
Browse the Default Inventory Drive
Create a New Custom Inventory Drive
Manage Inventory Objects Through Inventory Drives
Browse the Default Datastore Drives
Create a New Custom Datastore Drive
Manage Datastores Through Datastore Drives
Modify the Timeout Setting for Web Tasks
Using Tags
Retrieve a Tag and Save It into a Variable
Retrieve a Tag Category and Save It into a Variable
Create a Tag Category and a Tag
Assign a Tag to Virtual Machines
Retrieve Objects by Tag
Generate Tags Automatically by Using a Script
Add an Entity Type to a Tag Category
Retrieve Tag Assignments
Network Management with vSphere Distributed Switches
Create a Distributed Switch and Configure Networking
Configure a Distributed Switch
Migrate Virtual Machine Networking Configuration from a vSphere Standard Switch to a vSphere Distributed Switch
Migrate Physical and Virtual NICs to a vSphere Standard Switch
Migrate Physical and Virtual NICs to a vSphere Distributed Switch
Configure the Traffic Shaping Policy
Configure the Security Policy
Create a Local Content Library
Create a Subscribed Content Library
Create a Content Library Item
Create a Virtual Machine from a Content Library Item
Create a vApp from a Content Library Item
Export Content Library Item's Files to a Local Machine
Create a New VM-VM DRS Rule
Create a New VM-VMHost DRS Rule
Managing Certificates
Add a Root Certificate to vCenter Server and ESXi
Change the Machine SSL Certificate of vCenter Server
Change the Machine SSL Certificate of an ESXi Host
Managing vSphere Policy-Based Storage with VMware PowerCLI
Create a Tag-Based Storage Policy
Create a Capability-Based Storage Policy
Associate a Storage Policy with a Virtual Machine and Its Hard Disk
Disassociate a Storage Policy Associated with a Virtual Machine and Its Hard Disk
Remove a Storage Policy
Edit a Storage Policy
Export and Import a Storage Policy
Create a Virtual Machine in a Datastore Compatible with Storage Policy
Create a vSAN Datastore
Modify a vSAN Datastore
Create a vSAN Stretched Cluster
Enable a vSAN File Service
Create a vSAN File Service Domain
Create a vSAN File Share
Create an NFS 4.1 Datastore
Add a VASA Provider and Create a Policy
Invoke a Planned Failover on a Replication Group and Reverse the Replication
Attach a Flat VDisk to a Virtual Machine
Managing VMware Site Recovery Manager with VMware PowerCLI
Connect to an SRM Server
Protect a Virtual Machine
Create a Report of the Protected Virtual Machines
Create a Report of the Virtual Machines Associated with All Protection Groups
Managing the vSphere Automation API with VMware PowerCLI
Understanding the vSphere Automation SDK for PowerShell
Connecting to a vSphere Automation API Server
Connect Through Connect-VIServer
Connect Through a Configuration Object
Managing vCenter Server Connections Through Configuration Objects
Create a Local User Account in vCenter Server
Update the Local Accounts Global Password Policy in vCenter Server
Create a Virtual Machine
Create Tag Category, Tag, and Tag Association
Create Content Library and Content Library Item
Managing VMware Cloud Director with VMware PowerCLI
Connect to a VMware Cloud Director Server
Create and Manage Organizations
Create and Manage Organization Virtual Data Centers
Filter and Retrieve Organization Virtual Data Center Networks
Import a vApp Template from the Local Storage
Create a vApp Template from a vApp
Import a vApp from vSphere
Create and Modify a vApp
Manage Virtual Machines with vApps
Manage Virtual Machines and Their Guest Operating Systems
Retrieve a List of the Internal and External IP Addresses of Virtual Machines in vApps
Create and Manage Access Control Rules
Filter and Retrieve vApp Networks
Create vApp Networks for a Selected vApp
Create an Isolated vApp Network
Create an NAT Routed vApp Network
Create a Direct vApp Network
Modify or Remove vApp Networks
Managing vSphere Update Manager with VMware PowerCLI
Connect to a vCenter Server System
Create Patch Baselines
Attach and Detach Baselines
Scan a Virtual Machine
Check Virtual Machine Baseline Status
Stage Patches
Remediate a Virtual Machine
Upgrade Virtual Machine Hardware
Remediate a Cluster
Remediate a Host
Download Patches and Scan Objects
Managing vRealize Operations Manager with VMware PowerCLI
Connect to a vRealize Operations Manager Server
Check Memory Waste Levels
Get Remediation Recommendations
Change Alert Ownership
Create a Report for Problematic Hosts
Managing VMware Cloud on AWS with VMware PowerCLI
Connecting to VMware Cloud on AWS
Connect to VMware Cloud on AWS by Using an API Token
Connect to VMware Cloud on AWS by Using an OAuth Security Context
Connect to VMware Cloud on AWS GovCloud (US)
View the Available Software-Defined Data Centers
Connect to a vCenter Server on VMware Cloud on AWS
Connect to a vCenter Server on VMware Cloud on AWS by Using an OAuth 2.0 Authentication
Create a Software-Defined Data Center
Create a Cluster in a Software-Defined Data Center
Set the Elastic Distributed Resource Scheduler (EDRS) Policy of a Cluster
Remove a Cluster from a Software-Defined Data Center
Add Hosts to a Software-Defined Data Center
Remove Hosts from a Software-Defined Data Center
Help and Support for VMware PowerCLI
Generate a PowerCLI Support Bundle