Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning PowerCLI for VMware VSphere

You're reading from   Learning PowerCLI for VMware VSphere Automate your Vmware vSphere environment by learning how to install and use PowerCLI. This book takes a practical tutorial approach that will have you automating your daily routine tasks in no time.

Arrow left icon
Product type Paperback
Published in Feb 2014
Publisher
ISBN-13 9781782170167
Length 374 pages
Edition Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Robert van den Nieuwendijk Robert van den Nieuwendijk
Author Profile Icon Robert van den Nieuwendijk
Robert van den Nieuwendijk
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introduction to PowerCLI FREE CHAPTER 2. Learning Basic PowerCLI Concepts 3. Working with Objects in PowerShell 4. Managing vSphere Hosts with PowerCLI 5. Managing Virtual Machines with PowerCLI 6. Managing Virtual Networks with PowerCLI 7. Managing Storage with PowerCLI 8. Managing High Availability and Clustering with PowerCLI 9. Managing vCenter with PowerCLI 10. Reporting with PowerCLI Index

Index

A

  • -Address parameter / Creating software iSCSI VMFS datastores
  • -AlarmDefinition parameter / Modifying alarm definitions
  • active adapters / Configuring vSphere Standard Switches
  • Add-EsxSoftwareDepot cmdlet / Configuring Image Builder
  • Add-Member
    • properties, adding to objects / Adding properties to an object with Add-Member
  • Add-vCLIfunction function / Using the vSphere CLI commands from PowerCLI
  • Add-VDSwitchPhysicalNetworkAdapter cmdlet / Adding host physical network adapters to a vSphere Distributed Switch
  • Add-VDSwitchVMHost cmdlet / Adding hosts to vSphere Distributed Switches
  • Affinity Rules / Configuring Storage DRS
  • AlarmActionTrigger cmdlet / Removing alarm action triggers
  • alarms
    • configuring / Configuring alarms
    • definitions, retrieving / Retrieving alarm definitions
    • definitions, modifying / Modifying alarm definitions
    • actions, creating / Creating alarm actions
    • actions, retrieving / Retrieving alarm actions
    • actions, removing / Removing alarm actions
    • action triggers, creating / Creating alarm action triggers
    • action triggers, retrieving / Retrieving alarm action triggers
    • action triggers, removing / Removing alarm action triggers
  • AliasProperty / Using objects, properties, and methods
  • allFeasibleDs / Configuring the heartbeat datastore selection policy
  • allFeasibleDsWithUserPreference / Configuring the heartbeat datastore selection policy
  • AllSigned execution policy / Modifying the PowerShell execution policy
  • arrays
    • about / Using arrays and hash tables
    • using / Using arrays and hash tables
  • AssignedLicense property / Retrieving assigned licenses
  • Atomic Test & Set (ATS) / Upgrading datastores to VMFS-5
  • Auto Deploy
    • configuring / Configuring vSphere Image Builder and Auto Deploy, Configuring Auto Deploy

B

  • -BodyAsHtml parameter / Sending reports by e-mail
  • backtick character (`) / Using the ForEach-Object cmdlet
  • bootOptions.enterBIOSSetup property /
  • bootOptions property /
  • Bypass execution policy / Modifying the PowerShell execution policy
  • ByPropertyName parameter binding
    • using / Using the ByPropertyName parameter binding
    / Using the ByPropertyName parameter binding
  • ByValue parameter binding
    • using / Using the ByValue parameter binding
    / Using the ByValue parameter binding

C

  • -Cluster parameter / Retrieving DRS rules
  • -Configuration parameter / Configuring resource allocation between virtual machines
  • -Confirm
    • $false parameter / Attaching the host profile to a cluster or a host
  • -Credential parameter / Adding a host
  • calculated properties
    • creating / Creating calculated properties
  • canonical name / Getting SCSI LUNs
  • Cascading Style Sheet (CSS) / Generating HTML reports
  • CD drive
    • adding /
    • modifying /
    • removing /
  • certificate warnings
    • suppressing / Suppressing certificate warnings
  • Check and upgrade VMware Tools before each power on checkbox
    • enabling /
  • CIM Indication Subscriptions / Working with host profiles
  • ClusterConfigSpecEx object / Disabling or enabling host monitoring, Creating virtual machines to hosts DRS rules
  • ClusterDasConfigInfo object / Disabling or enabling host monitoring, Enabling VM and application monitoring
  • clusters
    • retrieving / Retrieving clusters
    • HA master, retrieving / Retrieving the HA master or primary hosts
    • primary hosts / Retrieving the HA master or primary hosts
    • configuration issues, retrieving / Retrieving cluster configuration issues
    • settings, modifying / Modifying cluster settings
    • hosts, moving to / Moving hosts to clusters
    • moving / Moving clusters
    • DPM configuration, retrieving / Retrieving the DPM configuration of a cluster
    • removing / Removing clusters
  • cluster settings
    • modifying / Modifying cluster settings
    • HA, disabling / Disabling HA
    • host monitoring, disabling / Disabling or enabling host monitoring
    • host monitoring, enabling / Disabling or enabling host monitoring
    • host profile, associating with cluster / Associating a host profile with a cluster
    • VM and application monitoring, enabling / Enabling VM and application monitoring
    • Datastore heartbeating, configuring / Configuring the heartbeat datastore selection policy
  • ClusterVmToolsMonitoringSettings object / Enabling VM and application monitoring
  • cmdlets
    • about / Modifying the PowerShell execution policy
  • CodeProperty / Using objects, properties, and methods
  • commands
    • running, on guest OS / Running commands on the guest OS
  • Common Information Model (CIM) Event / Working with host profiles
  • COM objects
    • using / Using COM objects
  • Compare-Object cmdlet / Using the Compare-Object cmdlet
  • Connect-VIServer -Menu command / Connecting to a server
  • Connect-VIserver cmdlet / Suppressing certificate warnings
  • Connect-VIServer cmdlet / Connecting to a server, Using the credential store
    • about / Using the vSphere PowerCLI Inventory Provider, Using the vSphere PowerCLI Datastore Provider
  • ConvertTo-Html -Fragment parameter / Generating HTML reports
  • ConvertTo-Html cmdlet / Generating HTML reports
  • Copy-DatastoreItem cmdlet
    • about / Copying files between a datastore and your PC
  • credential store
    • about / Connecting to a server
    • using / Using the credential store
  • CSV files
    • reports, exporting to / Exporting reports to CSV files

D

  • -DatastoreCluster parameter / Modifying Datastore Clusters
  • -Datastore parameter / Configuring Storage I/O Control
  • -DeletePermanently parameter / Removing a virtual machine
  • -Destination parameter / Moving resource pools
  • -DrsRecommendation property / Using DRS recommendations
  • dasConfig property / Disabling or enabling host monitoring, Configuring the heartbeat datastore selection policy
  • Datastore Cluster
    • creating / Creating a Datastore Cluster
    • retrieving / Retrieving Datastore Clusters
    • modifying / Modifying Datastore Clusters
    • datastores, adding / Adding datastores to a Datastore Cluster
    • datastores, retrieving / Retrieving the datastores in a Datastore Cluster
    • datastores, removing / Removing datastores from a Datastore Cluster
    • removing / Removing Datastore Clusters
  • Datastore heartbeating / Configuring the heartbeat datastore selection policy
  • Datastore Maintenance Mode / Configuring Storage DRS
  • datastores
    • creating / Creating datastores
    • NFS datastores, creating / Creating NFS datastores
    • retrieving / Retrieving datastores
    • adding, to Datastore Cluster / Adding datastores to a Datastore Cluster
    • retrieving, in Datastore Cluster / Retrieving the datastores in a Datastore Cluster
    • removing, from Datastore Cluster / Removing datastores from a Datastore Cluster
    • upgrading, to VMFS-5 / Upgrading datastores to VMFS-5
    • removing / Removing datastores
  • DefaultParameterSet parameter set / Creating a virtual machine from scratch
  • devices
    • adding, to virtual machine /
  • devices, adding to virtual machine
    • hard disk, adding /
    • SCSI controller, adding /
    • network adapter, adding /
    • floppy drive, adding /
    • CD drive, adding /
    • modifying /
    • hard disk, modifying /
    • hard disk, moving to another datastore /
    • SCSI controller, modifying /
    • network adapter, modifying /
    • floppy drive, modifying /
    • CD drive, modifying /
  • devices, removing from virtual machine
    • CD drive, modifying /
    • hard disk, removing /
    • network adapter, removing /
    • floppy drive, removing /
    • CD drive, removing /
  • Disconnect-VIServer cmdlet / Disconnecting from a server
  • Distributed Management Task Force, Inc. (DMTF) / Working with host profiles
  • Distributed Power Management (DPM)
    • using / Using Distributed Power Management (DPM)
    • enabling / Enabling DPM
    • hosts, configuring for / Configuring hosts for DPM
    • hosts, testing for / Testing hosts for DPM
    • hosts, putting in standby mode / Putting hosts in standby mode
    • hosts, starting / Starting hosts
    • cluster configuration, retrieving / Retrieving the DPM configuration of a cluster
    • disabling / Disabling DPM
  • distributed virtual port groups
    • creating / Creating distributed virtual port groups
    • creating, from reference group / Creating distributed virtual port groups from a reference group
    • creating, from export / Creating distributed virtual port groups from an export
    • configuring / Configuring distributed virtual port groups
    • renaming / Renaming a distributed virtual port group
    • configuration, rolling back / Rolling back the configuration of a distributed virtual port group
    • configuration, restoring / Restoring the configuration of a distributed virtual port group
    • Network I/O Control, configuring / Enabling Network I/O Control
    • configuration, exporting / Exporting the configuration of distributed virtual port groups
    • host network adapter, migrating to / Migrating a host network adapter from a standard port group to a distributed port group
    • removing / Removing distributed virtual port groups
  • DRS clusters
    • creating / Creating vSphere HA and DRS clusters
  • DRS groups
    • removing / Removing DRS groups
  • DRS recommendations
    • using / Using DRS recommendations
  • DRS rules
    • using / Using DRS rules
    • retrieving / Retrieving DRS rules
    • modifying / Modifying DRS rules
    • removing / Removing DRS rules
  • Dynamic Resource Scheduling (DRS) / Creating a cluster

E

  • $esxcli.hardware.cpu command / Using esxcli from PowerCLI
  • -Enabled parameter / Creating VM-VM DRS rules
  • -Entity parameter / Attaching the host profile to a cluster or a host, Retrieving performance statistics, Retrieving metric IDs
  • EnableNetworkResourceManagement() method / Enabling Network I/O Control
  • esxcli
    • using, from PowerCLI / Using esxcli from PowerCLI
  • esxcli command / Using esxcli from PowerCLI
    • about / Using esxcli from PowerCLI, Listing all of the available esxcli commands
    • using, from PowerCLI / Using esxcli from PowerCLI
    • $esxcli.hardware.cpu command / Using esxcli from PowerCLI
  • events
    • retrieving / Retrieving events
  • execution policy, PowerShell
    • modifying / Modifying the PowerShell execution policy
    • Restricted / Modifying the PowerShell execution policy
    • AllSigned / Modifying the PowerShell execution policy
    • RemoteSigned / Modifying the PowerShell execution policy
    • Unrestricted / Modifying the PowerShell execution policy
    • Bypass / Modifying the PowerShell execution policy
    • Undefined / Modifying the PowerShell execution policy
  • Export-CSV cmdlet / Exporting reports to CSV files
  • Export-VDPortGroup cmdlet / Exporting the configuration of distributed virtual port groups
  • Export-VDPortgroup cmdlet / Restoring the configuration of a distributed virtual port group
  • ExtensionData property
    • raw objects, using with / Using raw API objects with ExtensionData or Get-View
    • using / Using the ExtensionData property
  • {eventDescription} variable / Creating alarm actions

F

  • -FilterScript parameter / Using the Where-Object cmdlet
  • -Floppy parameter /
  • -FullScreen parameter / Opening the console of a virtual machine
  • Fault Tolerance
    • configuring / Configuring Fault Tolerance
    • turning on / Turning Fault Tolerance on
    • turning off / Turning Fault Tolerance off
  • files
    • copying, between datastore and PC / Copying files between a datastore and your PC
  • Fixed, Most Recently Used (MRU) / Setting the multipathing policy
  • floppy drive
    • adding /
    • modifying /
    • removing /
  • ForEach-Object -Process scriptblock / Using the ForEach-Object cmdlet
  • ForEach-Object cmdlet / Using the ForEach-Object cmdlet
  • Format-List cmdlet / Retrieving a list of all of your virtual machines
    • about / Using Get-Command
  • Format-Table -AutoSize / Retrieving cluster configuration issues

G

  • Get-AlarmAction cmdlet / Retrieving alarm actions
  • Get-AlarmActionTrigger cmdlet / Retrieving alarm action triggers
  • Get-AlarmDefinition cmdlet / Retrieving alarm definitions
  • Get-Alias cmdlet
    • about / Creating calculated properties
  • Get-ChildItem cmdlet / Using aliases
    • about / Using PSDrives, Using the vSphere PowerCLI Inventory Provider
  • Get-Cluster cmdlet / Retrieving clusters
  • Get-Command cmdlet
    • about / Using Get-Command, Using providers
    • using / Using Get-Command
  • Get-DatastoreCluster cmdlet / Retrieving Datastore Clusters
  • Get-Datastore cmdlet / Retrieving datastores
  • Get-ESXCliCommand function / Listing all of the available esxcli commands
  • Get-ExecutionPolicy cmdlet / Modifying the PowerShell execution policy
  • Get-HAPrimaryVMHost cmdlet / Retrieving the HA master or primary hosts
  • Get-Help cmdlet
    • using / Using Get-Help
  • Get-LicenseDataManager cmdlet / Using the LicenseDataManager
  • Get-Log cmdlet / Retrieving log files
  • Get-LogType cmdlet / Retrieving log files
  • Get-Member cmdlet
    • using / Using Get-Member
  • Get-PowerCLICommunity cmdlet
    • using / Using Get-PowerCLICommunity
  • Get-PowerCLIConfiguration cmdlet / Connecting to multiple servers, Retrieving the PowerCLI configuration
  • Get-PowerCLIHelp cmdlet
    • using / Using Get-PowerCLIHelp
  • Get-PSProvider cmdlet
    • about / Using providers
  • Get-ScsiLun cmdlet / Getting SCSI LUNs, Setting the multipathing policy
  • Get-ScsiLunPath cmdlet / Retrieving the vmhba paths to a SCSI device
  • Get-StatInterval cmdlet / Retrieving the statistical intervals
  • Get-StatType cmdlet / Retrieving metric IDs
  • Get-VDSwitch cmdlet / Retrieving vSphere Distributed Switches
  • Get-VICommand cmdlet
    • using / Using Get-VICommand
    / Using the ByPropertyName parameter binding
  • Get-VIEvent cmdlet / Retrieving events
  • Get-View cmdlet
    • raw objects, using with / Using raw API objects with ExtensionData or Get-View
    • using / Using the Get-View cmdlet
  • Get-VIObjectByVIView cmdlet
    • using / Using the Get-VIObjectByVIView cmdlet
  • Get-VIPermission cmdlet / Retrieving permissions
  • Get-VIPrivilege -Role cmdlet
    • about / Retrieving privileges
  • Get-VIPrivilege cmdlet
    • about / Retrieving privileges
    / Retrieving roles
  • Get-VIRole cmdlet / Retrieving roles
  • Get-VM cmdlet / Retrieving a list of all of your virtual machines, Using the ByValue parameter binding
    • about / Using Get-Command, Using Get-Help
  • Get-VMHostStorage cmdlet / Rescanning for new storage devices
  • get cmdlets
    • about / Modifying the PowerShell execution policy
  • Group-Object cmdlet / Using the Group-Object cmdlet
  • guest operating system, virtual machine
    • shutting down / Shutting down a virtual machine's guest operating system
  • GUID Partition Table (GPT) / Upgrading datastores to VMFS-5

H

  • $HostService variable / Modifying the startup policy of a host service
  • -HardDisk parameter /
  • -HostService parameter / Starting a host service
  • HA
    • disabling / Disabling HA
  • HA master
    • retrieving / Retrieving the HA master or primary hosts
  • hard disk
    • adding /
    • modifying /
    • moving, to another datastore /
    • removing /
  • hash table
    • about / Using arrays and hash tables
    • using / Using arrays and hash tables
    • using, to create object / Using a hash table to create an object
  • HBAs / Rescanning for new storage devices
  • HBDatastoreCandidatePolicy / Configuring the heartbeat datastore selection policy
  • HBDatastoreCandidatePolicy property / Configuring the heartbeat datastore selection policy
  • hBDatastoreCandidatePolicy property / Configuring the heartbeat datastore selection policy
  • heartbeatDatastore property / Configuring the heartbeat datastore selection policy
  • here-string
    • about / Using here-strings
  • High Availability (HA) / Creating a cluster
  • host
    • adding, to VMware vCenter server / Creating a datacenter, Creating a cluster, Adding a host
    • removing, from VMware vCenter Server / Removing a host from the VMware vCenter Server
  • host containers
    • license keys, associating with / Associating license keys with host containers
  • hostMonitoring property / Disabling or enabling host monitoring
  • host network adapters
    • using / Using host network adapters
    • creating / Creating host network adapters
    • retrieving / Retrieving host network adapters
    • configuring / Configuring host network adapters
    • removing / Removing host network adapters
    • NIC Teaming, configuring / Configuring NIC Teaming
  • host network adapters configuration
    • about / Configuring host network adapters
    • duplex setting / Configuring network speed and the duplex setting
    • network speed, configuring / Configuring network speed and the duplex setting
    • management network, configuring / Configuring the management network
    • vMotion, configuring / Configuring vMotion
  • host networking
    • configuring / Configuring host networking
  • host profile
    • associating, with cluster / Associating a host profile with a cluster
  • host profiles
    • working with / Working with host profiles
    • creating / Creating a host profile
    • attaching, to cluster / Attaching the host profile to a cluster or a host
    • attaching, to host / Attaching the host profile to a cluster or a host
    • testing, for compliance / Testing the host profile for compliance
    • applying, to host / Applying a host profile to a host or cluster
    • applying, to cluster / Applying a host profile to a host or cluster
    • answer files, using / Using host profile answer files
    • exporting / Exporting a host profile
    • importing / Importing a host profile
  • host profiles answer files
    • using / Using host profile answer files
  • hosts
    • retrieving / Retrieving a list of all of your hosts
    • moving, to clusters / Moving hosts to clusters
    • testing, for DPM / Testing hosts for DPM
    • putting, in standby mode / Putting hosts in standby mode
    • starting / Starting hosts
    • assigned license keys, removing / Removing assigned license keys from hosts
  • hosts DRS groups
    • creating / Creating hosts DRS groups
    • retrieivng / Retrieving DRS groups
    • modifying / Modifying DRS groups
    • virtual machines, adding / Adding virtual machines to a DRS group
    • virtual machines, removing / Removing virtual machines from a DRS group
  • host services
    • working with / Working with host services
    • information, retrieving from / Retrieving information about host services
    • starting / Starting a host service
    • stopping / Stopping a host service
    • restarting / Restarting a host service
    • startup policy, modifying / Modifying the startup policy of a host service
    • host firewall, configuring / Configuring the host firewall
    • host firewall default policy, obtaining / Getting the host firewall default policy
    • host firewall default policy, modifying / Modifying the host firewall default policy
    • host firewall exceptions, obtaining / Getting the host firewall exceptions
    • host firewall exceptions, modifying / Modifying a host firewall exception
  • HTML reports
    • generating / Generating HTML reports

I

  • -Id parameter / Rescanning for new storage devices
  • -IncludeEqual parameter / Using the Compare-Object cmdlet
  • -InputObject parameter / Retrieving log files, Exporting reports to CSV files
  • -IScsiHba parameter / Creating software iSCSI VMFS datastores
  • Image Builder
    • configuring / Configuring Image Builder
  • installation, PowerCLI
    • steps / Installing PowerCLI
  • Invoke-VMScript cmdlet / Running commands on the guest OS
  • IscsiManager BindVnic() method / Creating software iSCSI VMFS datastores

J

  • jumbo frames / Configuring vSphere Standard Switches

K

  • -KeepTogether parameter / Creating VM-VM DRS rules

L

  • -LiteralPath parameter / Retrieving log files
  • -Location parameter / Creating a datacenter, Retrieving clusters
  • Length property / Using objects, properties, and methods
  • LicenseAssignmentManager.QueryAssignedLicenses() method / Retrieving assigned licenses
  • LicenseAssignmentManager.RemoveAssignedLicense() method / Removing assigned license keys from hosts
  • LicenseAssignmentManager.UpdateAssignedLicense() method / Assigning licenses to hosts
  • LicenseDataManager
    • using / Using the LicenseDataManager
    • license keys, associating with host containers / Associating license keys with host containers
    • associated license keys, applying to hosts in container / Applying the associated license key to all the hosts in the container
    • license key associations, retrieving / Retrieving license key associations
    • license key associations, retrieving to host containers in environment / Retrieving all of the license key associations to the host containers in your environment
    • license key associations, retrieving with specific host container / Retrieving the license keys associated with a specific host container
    • effective license key of host container, retrieving / Retrieving the effective license key of a host container
  • LicenseDataManager.ApplyAssociatedLicenseData() method / Applying the associated license key to all the hosts in the container
  • LicenseDataManager.QueryEffectiveLicenseData() method / Retrieving the effective license key of a host container
  • LicenseDataManager.UpdateAssociatedLicenseData() method / Associating license keys with host containers
  • license inventory
    • license keys, adding / Adding license keys to the license inventory
    • license keys, retrieving from / Retrieving license keys from the license inventory
    • license keys, removing from / Removing license keys from the license inventory
  • license key associations
    • retrieiving / Retrieving license key associations
    • retrieiving, to host containers in environment / Retrieving all of the license key associations to the host containers in your environment
    • retrieiving, with specific host container / Retrieving the license keys associated with a specific host container
    • modifying / Modifying license key associations
    • removing / Removing license key associations
  • LicenseManager.RemoveLicense() method / Removing license keys from the license inventory
  • licenses
    • managing / Managing licenses
    • keys, adding to license inventory / Adding license keys to the license inventory
    • keys, retrieving from license inventory / Retrieving license keys from the license inventory
    • keys, removing from license inventory / Removing license keys from the license inventory
    • assigning, to hosts / Assigning licenses to hosts
    • assigned licenses, retrieving / Retrieving assigned licenses
    • assigned license keys, removing from hosts / Removing assigned license keys from hosts
  • list() method / Using esxcli from PowerCLI
  • log bundles
    • creating / Creating log bundles
  • log files
    • retrieving / Retrieving log files
  • Logical Unit Number (LUN) / Rescanning for new storage devices

M

  • -MaintenanceMode parameter / Configuring Storage I/O Control
  • -MultipathPolicy parameter / Setting the multipathing policy
  • maintenance mode
    • disabling / Enabling and disabling maintenance mode
    • enabling / Enabling and disabling maintenance mode
    • about / Enabling and disabling maintenance mode
    • cluster DRS automation levels / Enabling and disabling maintenance mode
    • host putting, Set-VMHost cmdlet used / Enabling and disabling maintenance mode
  • Managed Object References
    • using / Using Managed Object References
  • Master Boot Record (MBR) / Upgrading datastores to VMFS-5
  • Math.Round method / Rounding a value
  • maxFailureWindow / Enabling VM and application monitoring
  • maximum transmission unit (MTU) / Creating vSphere Standard Switches
  • Measure-Object cmdlet
    • using / Using the Measure-Object cmdlet
    • value, rounding / Rounding a value
  • methods
    • about / Using methods
  • metric IDs
    • retrieving / Retrieving metric IDs
  • minUpTime / Enabling VM and application monitoring
  • Move-Cluster cmdlet / Moving clusters
  • Move-VMHost cmdlet / Moving hosts to clusters
  • multipathing policy
    • setting / Setting the multipathing policy
  • multiple servers
    • connecting to / Connecting to multiple servers

N

  • -Name parameter / Listing all of the available esxcli commands, Creating roles
  • -Name parameters / Creating a datacenter
  • -NetworkAdapter parameter /
  • network adapter
    • adding /
    • modifying /
    • removing /
  • Network I/O Control
    • configuring / Configuring Network I/O Control
    • enabling / Enabling Network I/O Control
    • disabling / Disabling Network I/O Control
  • New-Alias cmdlet / Using aliases
  • New-CDDrive cmdlet /
  • New-Cluster cmdlet / Creating vSphere HA and DRS clusters, Modifying cluster settings
  • New-Datacenter cmdlet / Creating a datacenter
  • New-DatastoreCluster cmdlet / Creating a Datastore Cluster
  • New-Datastore cmdlet / Creating datastores
  • New-DrsRule cmdlet / Creating VM-VM DRS rules
  • New-FloppyDrive cmdlet /
  • New-HardDisk cmdlet /
  • New-IScsiHbaTarget cmdlet / Creating software iSCSI VMFS datastores
  • New-NetworkAdapter cmdlet /
  • New-Object cmdlet
    • using / Using the New-Object cmdlet
  • New-OSCustomizationSpec cmdlet / Using OS customization specifications
  • New-PSDrive cmdlet
    • about / Using the vSphere PowerCLI Datastore Provider
  • New-ScsiController cmdlet /
  • New-VDPortgroup cmdlet / Creating distributed virtual port groups
  • New-VICredentialStoreItem cmdlet / Using the credential store
  • New-VIPermission cmdlet / Creating permissions
  • New-VIProperty cmdlet
    • PowerCLI objects, extending with / Extending PowerCLI objects with the New-VIProperty cmdlet
  • New-VIRole cmdlet
    • about / Creating roles
  • New-VM cmdlet / Creating a virtual machine
  • NFS datastores
    • creating / Creating NFS datastores
  • NoteProperty / Using objects, properties, and methods
  • NoteProperty member / Using a hash table to create an object

O

  • objects
    • about / Using objects, properties, and methods
    • creating / Creating your own objects
    • New-Object cmdlet, using / Using the New-Object cmdlet
    • creating, hash table used / Using a hash table to create an object
    • creating, Select-Object cmdlet / Creating objects using the Select-Object cmdlet
    • properties adding, with Add-Member / Adding properties to an object with Add-Member
  • OS customization specifications
    • using / Using OS customization specifications
  • Out-String cmdlet / Sending reports by e-mail

P

  • -PassThru parameter / Adding properties to an object with Add-Member
  • -Path parameter / Retrieving log files
  • -Pattern parameter / Retrieving log files
  • -Permission parameter / Modifying permissions
  • -Profile parameter / Testing the host profile for compliance
  • ParameterizedProperty property / Using objects, properties, and methods
  • performance statistics
    • retrieving / Retrieving performance statistics
  • permissions
    • about / Working with roles and permissions
    • creating / Creating permissions
    • retrieving / Retrieving permissions
    • modifying / Modifying permissions
    • removing / Removing permissions
  • pipeline
    • about / Using the pipeline
    • ByValue parameter binding, using / Using the ByValue parameter binding
    • ByPropertyName parameter binding, using / Using the ByPropertyName parameter binding
  • port groups / Using standard port groups
  • PowerCLI
    • URL, for downloading / Downloading PowerCLI
    • downloading, steps / Downloading PowerCLI
    • installing, steps / Installing PowerCLI
    • server, connecting to / Connecting to a server
    • multiple servers, connecting to / Connecting to multiple servers
    • certificate warnings, suppressing / Suppressing certificate warnings
    • disconnecting, from server / Disconnecting from a server
    • esxcli, using from / Using esxcli from PowerCLI
    • vSphere CLI commands, using / Using the vSphere CLI commands from PowerCLI
  • PowerCLI commands output
    • displaying, in grid view / Displaying the output in a grid view
  • PowerCLI Configuration
    • retrieving / Retrieving the PowerCLI configuration
  • PowerCLI objects
    • extending, with New-VIProperty cmdlet / Extending PowerCLI objects with the New-VIProperty cmdlet
  • PowerGUI
    • about / Using PowerGUI
  • PowerShell
    • execution policy, modifying / Modifying the PowerShell execution policy
  • PowerShell object cmdlets
    • about / Using the PowerShell object cmdlets
    • Select-Object cmdlet, using / Using the Select-Object cmdlet
  • primary hosts
    • retrieving / Retrieving the HA master or primary hosts
  • privileges
    • retrieving / Retrieving privileges
  • providers
    • about / Using providers and PSDrives
    • using / Using providers
  • PSChildName property / Using COM objects
  • PSDrives
    • using / Using PSDrives
  • PSdrives
    • about / Using providers and PSDrives

R

  • -Replace operator / Using methods
  • -ResourcePool parameter / Creating a virtual machine from scratch, Moving resource pools
  • raw API objects
    • using, with ExtensionData property / Using raw API objects with ExtensionData or Get-View
    • using, with Get-View cmdlet / Using raw API objects with ExtensionData or Get-View
  • Raw Device Mapping (RDM)
    • about / Working with Raw Device Mappings
  • ReconfigureComputeResource_Task() method / Disabling or enabling host monitoring, Enabling VM and application monitoring, Configuring the heartbeat datastore selection policy, Creating virtual machines DRS groups, Creating virtual machines to hosts DRS rules
  • RemoteSigned execution policy / Modifying the PowerShell execution policy
  • Remove-AlarmAction cmdlet / Removing alarm actions
  • Remove-CDDrive cmdlet /
  • Remove-FloppyDrive cmdlet /
  • Remove-VDSwitch cmdlet / Removing vSphere Distributed Switches
  • Remove-VIPermission cmdlet / Removing permissions
  • Remove-VM cmdlet / Removing a virtual machine
  • Remove-VMHost cmdlet / Removing a host from the VMware vCenter Server
  • Replace method / Using methods
  • reports
    • exporting, to CSV files / Exporting reports to CSV files
    • sending, by e-mail / Sending reports by e-mail
  • Required property / Retrieving information about host services
  • resource pools
    • using / Using resource pools
    • creating / Creating resource pools
    • retrieving / Retrieving resource pools
    • mofiying / Modifying resource pools
    • moving / Moving resource pools
    • resource allocation between virtual machines, configuring / Configuring resource allocation between virtual machines
    • removing / Removing resource pools
  • Restricted execution policy / Modifying the PowerShell execution policy
  • roles
    • about / Working with roles and permissions
    • using / Using roles
    • creating / Creating roles
    • retrieving / Retrieving roles
    • modifying / Modifying roles
    • removing / Removing roles
  • Round Robin (RR) / Setting the multipathing policy

S

  • $String variable / Using objects, properties, and methods
  • -ScriptType parameter / Running commands on the guest OS
  • -ScsiLun parameter / Setting the multipathing policy, Retrieving the vmhba paths to a SCSI device
  • -ScsiLunPath parameter / Modifying the vmhba paths to a SCSI device
  • -SimpleMatch parameter / Retrieving log files
  • -SoftwareIScsiEnable parameter / Creating software iSCSI VMFS datastores
  • SAPI.SpVoice COM object / Using COM objects
  • scriptblock
    • about / Filtering objects
  • ScriptProperty / Using objects, properties, and methods
  • SCSI controller
    • adding /
    • modifying /
  • SCSI device
    • vmhba paths, configuring to / Configuring the vmhba paths to a SCSI device
    • vmhba paths, retrieving to / Retrieving the vmhba paths to a SCSI device
    • vmhba paths,modifying to / Modifying the vmhba paths to a SCSI device
  • SCSI logical unit / Getting SCSI LUNs
  • Select-Object cmdlet / Retrieving a list of all of your virtual machines, Using the Select-Object cmdlet, Retrieving Storage I/O Control settings, Exporting reports to CSV files
    • using, to create object / Creating objects using the Select-Object cmdlet
  • Select-String cmdlet / Retrieving log files
  • Send-MailMessage cmdlet / Sending reports by e-mail
  • server
    • disconnecting from / Disconnecting from a server
  • servers
    • connecting to / Connecting to a server
  • Set-CDDrive cmdlet /
  • Set-FloppyDrive cmdlet /
  • Set-HardDisk cmdlet /
  • Set-Location cmdlet
    • about / Using the vSphere PowerCLI Datastore Provider
  • Set-NetworkAdapter cmdlet /
  • Set-PowerCLIConfiguration cmdlet / Connecting to multiple servers, Suppressing certificate warnings
  • Set-ScsiController cmdlet /
  • Set-VDSwitch -BackupPath parameter / Importing the configuration of a vSphere Distributed Switch from a backup
  • Set-VIPermission cmdlet / Modifying permissions
  • Set-VIRole cmdlet / Modifying roles
  • Set-VirtualPortGroup cmdlet / Configuring standard port groups
  • Set-VM cmdlet / Creating a virtual machine from scratch,
  • Set-VMGuestNetworkInterface cmdlet / Configuring the network of a virtual machine
  • Set-VMHostNetworkAdapter cmdlet / Migrating a host network adapter from a standard port group to a distributed port group
  • snapshots
    • about /
    • creating /
    • retrieving /
    • reverting to /
    • modifying /
    • removing /
  • software iSCSI VMFS datastores
    • creating / Creating software iSCSI VMFS datastores
  • Sort-Object cmdlet / Using the Sort-Object cmdlet
  • splat operator @ / Configuring vSphere Distributed Switches
  • splatting / Configuring vSphere Distributed Switches
  • standard port groups
    • about / Using standard port groups
    • creating / Creating standard port groups
    • configuring / Configuring standard port groups
    • removing / Removing standard port groups
  • statistical intervals
    • retrieving / Retrieving the statistical intervals
  • storage devices
    • rescanning for / Rescanning for new storage devices
  • Storage DRS
    • about / Configuring Storage DRS
  • Storage I/O Control (SIOC)
    • about / Configuring Storage I/O Control
    • settings, retrieving / Retrieving Storage I/O Control settings
  • string
    • expanding / Understanding what expands a string
    • expanding, on use / Expanding a string when it is used
  • strings
    • subexpressions / Expanding variables and subexpressions in strings
  • subexpressions
    • in strings / Expanding variables and subexpressions in strings

T

  • -ToUpper operator / Using methods
  • Tee-Object cmdlet / Using the Tee-Object cmdlet
  • template
    • virtual machine, creating from / Creating a virtual machine from a template
    • converting, into virtual machine /
    • name, modifying /
    • removing /
  • TrimEnd method / Using methods
  • type declarations
    • using / Using type declarations
  • {targetName} variable / Creating alarm actions

U

  • -UrlOnly parameter / Opening the console of a virtual machine
  • Undefined execution policy / Modifying the PowerShell execution policy
  • Unrestricted execution policy / Modifying the PowerShell execution policy
  • Update-Tools cmdlet
    • using /
  • userSelectedDs / Configuring the heartbeat datastore selection policy

V

  • -Vmfs parameter / Creating VMFS datastores
  • -VMHost parameter / Enabling and disabling maintenance mode, Creating vSphere Standard Switches, Rescanning for new storage devices, Retrieving log files
  • -VMHostStorage parameter / Creating software iSCSI VMFS datastores
  • -VM parameter / Opening the console of a virtual machine
  • variables
    • expanding / Expanding variables and subexpressions in strings
  • vCenter Server mail server
    • configuring / Configuring the vCenter Server mail server and sender settings
  • vCenter Single Sign-On (SSO) / Creating permissions
  • vCheck / Reporting the health of your vSphere environment with vCheck
  • VDPortgroup -BackupPath parameter / Restoring the configuration of a distributed virtual port group
  • vicfg-ipsec command / Using the vSphere CLI commands from PowerCLI
  • VimDatastore provider
    • about / Using providers
  • VimInventory provider
    • about / Using providers
  • Virtual Local Area Network (Virtual LAN or VLAN) / Using standard port groups
  • virtual machine
    • creating / Creating a virtual machine
    • cloning / Creating a virtual machine, Cloning a virtual machine
    • registering / Creating a virtual machine, Registering a virtual machine
    • creating, from scratch / Creating a virtual machine from scratch
    • creating, from template / Creating a virtual machine from a template
    • starting / Starting a virtual machine
    • suspending / Suspending a virtual machine
    • guest operating system, shutting down / Shutting down a virtual machine's guest operating system
    • stopping / Stopping a virtual machine
    • settings, modifying /
    • devices, adding /
    • devices, removing from /
    • converting, into template /
    • moving, to another folder /
    • moving, to datastore /
    • moving, to host /
    • moving, to cluster /
    • moving, to resource pool /
    • compatibility, upgrading /
    • console, opening / Opening the console of a virtual machine
    • removing / Removing a virtual machine
  • virtual machine
    • creating, from template / Creating a virtual machine
  • virtual machine network
    • configuring / Configuring the network of a virtual machine
  • virtual machines
    • retrieving / Retrieving a list of all of your virtual machines
    • removing, from DRS groups / Removing virtual machines from a DRS group
    • creating, to host DRS rules / Creating virtual machines to hosts DRS rules
  • virtual machines, retrieving
    • deprecated warnings display, stopping / Suppressing displaying deprecated warnings
    • wildcard characters, using / Using wildcard characters
    • objects, filtering / Filtering objects
    • comparison operators, using / Using comparison operators
    • aliases, using / Using aliases
  • virtual machines DRS groups
    • creating / Creating virtual machines DRS groups
  • VM-Host affinity rules / Using DRS rules
  • VM-Host DRS rules
    • creating / Creating VM-Host DRS rules
  • VM-VM affinity rules / Using DRS rules
  • VM-VM DRS rules
    • creating / Creating VM-VM DRS rules
  • VM and application monitoring
    • enaling / Enabling VM and application monitoring
  • VMFS datastores
    • creating / Creating VMFS datastores
  • vmhba paths
    • about / Configuring the vmhba paths to a SCSI device
    • retrieving, to SCSI device / Retrieving the vmhba paths to a SCSI device
    • modifying, to SCSI device / Modifying the vmhba paths to a SCSI device
  • VMHostNetworkAdapter cmdlet / Using the vSphere CLI commands from PowerCLI
  • VMHostNetworkAdapter parameter / Removing host physical network adapters from a vSphere Distributed Switch
  • vmkernel log file / Retrieving log files
  • vmMonitoring property / Enabling VM and application monitoring
  • VMware Flings
    • URL /
  • VMware Remote Console (VMRC) browser plugin / Opening the console of a virtual machine
  • VMware Technical Support
    • about / Creating log bundles
  • VMware Tools
    • updating /
    • Update-Tools cmdlet used /
    • Check and upgrade VMware Tools before each power on checkbox, enabling /
  • VMware vCenter Server
    • host, removing from / Removing a host from the VMware vCenter Server
  • VMware vCenter server
    • about / Adding a host to a VMware vCenter Server
    • datacenter, creating / Creating a datacenter
    • host, adding to / Creating a datacenter
    • cluster, creating / Creating a cluster
  • VMware vCloud Director
    • about / Installing PowerCLI
  • VMware vSphere
    • about / Working with roles and permissions
    • roles / Working with roles and permissions
  • VMware vSphere API
    • using /
  • VMware vSphere Storage APIs for Array Integration (VAAI) / Upgrading datastores to VMFS-5
  • vSphere CLI / Using esxcli from PowerCLI
  • vSphere CLI commands
    • using, from PowerCLI / Using the vSphere CLI commands from PowerCLI
  • vSphere Distributed Switches
    • about / Using vSphere Distributed Switches
    • creating / Creating vSphere Distributed Switches
    • creating, from scratch / Creating a new vSphere Distributed Switch from scratch
    • cloning / Cloning a vSphere Distributed Switch
    • creating, from export / Creating a vSphere Distributed Switch from an export
    • retrieving / Retrieving vSphere Distributed Switches
    • configuring / Configuring vSphere Distributed Switches
    • upgrading / Upgrading a vSphere Distributed Switch
    • hosts, adding to / Adding hosts to vSphere Distributed Switches
    • host physical network adapters, adding to / Adding host physical network adapters to a vSphere Distributed Switch
    • host physical network adapters, removing from / Removing host physical network adapters from a vSphere Distributed Switch
    • hosts, removing from / Removing hosts from a vSphere Distributed Switch
    • configuration, exporting / Exporting the configuration of vSphere Distributed Switches
    • removing / Removing vSphere Distributed Switches
  • vSphere Distributed Switches configuration
    • about / Configuring vSphere Distributed Switches
    • rolling back / Rolling back the configuration of a vSphere Distributed Switch
    • congiguring, from backup / Importing the configuration of a vSphere Distributed Switch from a backup
  • vSphere folders
    • working with / Working with vSphere folders
  • vSphere HA
    • creating / Creating vSphere HA and DRS clusters
  • vSphere Image Builder
    • configuring / Configuring vSphere Image Builder and Auto Deploy
  • vSphere Installation Bundle (VIB) / Configuring Image Builder
  • vSphere PowerCLI Datastore Provider
    • using / Using the vSphere PowerCLI Datastore Provider
  • vSphere PowerCLI Inventory Provider
    • using / Using the vSphere PowerCLI Inventory Provider
  • vSphere Standard Switches
    • about / Using vSphere Standard Switches
    • image / Using vSphere Standard Switches
    • creating / Creating vSphere Standard Switches
    • configuring / Configuring vSphere Standard Switches
    • network adapters, adding to / Adding network adapters to a switch
    • removing / Removing vSphere Standard Switches

W

  • Where-Object cmdlet
    • about / Using aliases
    / Using the Where-Object cmdlet
  • wildcard characters
    • about / Using wildcard characters
    • used, for selecting virtual machines / Using wildcard characters
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image