VMware PowerCLI User's Guide - OpenTopic

1y ago
9 Views
2 Downloads
634.91 KB
126 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Shaun Edmunds
Transcription

VMware PowerCLI User'sGuideVMware PowerCLI 10.1.1

VMware PowerCLI User's GuideYou can find the most up-to-date technical documentation on the VMware website at:https://docs.vmware.com/If you have comments about this documentation, submit your feedback todocfeedback@vmware.comVMware, Inc.3401 Hillview Ave.Palo Alto, CA 94304www.vmware.comCopyright 1998–2018 VMware, Inc. All rights reserved. Copyright and trademark information.VMware, Inc.2

ContentsVMware PowerCLI User's Guide81 Introduction to VMware PowerCLI 9Microsoft PowerShell Basics9PowerShell Command-Line SyntaxPowerShell Pipelines10PowerShell Wildcards10PowerShell Common ParametersPowerCLI Concepts101011PowerCLI Modules12Interoperability Between the PowerCLI and vCloud Director PowerCLI ModulesSelecting Objects in PowerCLIProviding Login Credentials1415Running PowerCLI Cmdlets AsynchronouslyManaging Default Server Connections1516Customization Specification Objects in PowerCLIUsing ESXCLI with PowerCLI1616PowerCLI Inventory Provider17PowerCLI Datastore Provider17PowerCLI About Articles13172 Installing VMware PowerCLI 19Supported Operating SystemsSupported VMware Products2020Supported Windows PowerShell Versions20Prerequisites for Installing and Running PowerCLIInstall PowerCLI2020Allow Execution of Local ScriptsUpdate a PowerCLI Module2121Uninstall PowerCLI 223 Configuring VMware PowerCLI 23Scoped Settings of PowerCLI23Configuring the Scope of the PowerCLI SettingsPriority of Settings Scopes in PowerCLIPowerCLI Configuration Files232424Using Custom Scripts to Extend the Operating System Support for PowerCLI CmdletsVMware, Inc.253

VMware PowerCLI User's Guide4 Configuring Customer Experience Improvement Program 26Categories of Information That VMware Receives26Join the Customer Experience Improvement Program in PowerCLI265 Sample Scripts for Managing vSphere with VMware PowerCLI 27Connect to a vCenter Server System31Manage Virtual Machines on vSphere32Add a Standalone Host to a vCenter Server SystemSet the License Key for a Host on vCenter Server3333Activate Maintenance Mode for a Host on vCenter ServerCreate vSphere Inventory Objects3334Create Virtual Machines on vCenter Server Using an XML Specification FileManage Virtual Machine Templates on vCenter ServerCreate and Use Snapshots on vCenter Server353637Update the Resource Configuration Settings of a Virtual Machine on vCenter ServerGet a List of Hosts on a vCenter Server System and View Their PropertiesChange the Host Advanced Configuration Settings on vCenter Server373839Move a Virtual Machine to a Different Host Using VMware vSphere vMotion39Move a Virtual Machine to a Different Datastore Using VMware vSphere Storage vMotionMove a Virtual Machine to a Different vCenter Server SystemCreate a Host Profile on a vCenter Server SystemApply a Host Profile to a Host on vCenter Server404142Manage Statistics and Statistics Intervals on vCenter Server42Modify the Settings of the NIC Teaming Policy for a Virtual SwitchCreate a vApp on vCenter ServerModify the Properties of a vAppExport or Import vApps43444444Create an iSCSI Host Storage45Add Passthrough Devices to a Host and Virtual Machine46Create a Custom Property Based on an Extension Data PropertyCreate a Script-Based Custom Property for a vSphere ObjectApply a Customization Object to a Cloned Virtual Machine464747Modify the Default NIC Mapping Object of a Customization SpecificationModify Multiple NIC Mapping Objects of a Customization SpecificationCreate Multiple Virtual Machines that Use Static IP AddressesCreate Multiple Virtual Machines with Two Network AdaptersCreate a vSphere Role and Assign Permissions to a UserView the Action Triggers for an Alarm on vCenter ServerRemove Alarm Actions and Triggers484849515253Create and Modify Alarm Actions and Alarm Triggers on vCenter Server5354Create and Modify Advanced Settings for a ClusterModify the vCenter Server Email ConfigurationVMware, Inc.4055554

VMware PowerCLI User's GuideModify the vCenter Server SNMP Configuration56Use Esxtop to Get Information on the Virtual CPUs of a Virtual MachineFilter vSphere Objects with Get-View57Populate a View Object with Get-View58Update the State of a Server-Side ObjectReboot a Host with Get-View565859Modify the CPU Levels of a Virtual Machine with Get–View and Get–VIObjectByVIViewBrowse the Default Inventory Drive60Create a New Custom Inventory Drive61Manage Inventory Objects Through Inventory DrivesBrowse the Default Datastore Drives6162Create a New Custom Datastore Drive62Manage Datastores Through Datastore DrivesModify the Timeout Setting for Web TasksUsing Tags59636465Retrieve a Tag and Save It into a Variable65Retrieve a Tag Category and Save It into a VariableCreate a Tag Category and a Tag66Assign a Tag to Virtual Machines66Retrieve Objects by Tag67Generate Tags Automatically by Using a ScriptAdd an Entity Type to a Tag CategoryRetrieve Tag Assignments66676868Network Management with vSphere Distributed SwitchesCreate a Distributed Switch and Configure NetworkingConfigure a Distributed Switch696970Migrate Virtual Machine Networking Configuration from a vSphere Standard Switch to avSphere Distributed Switch70Migrate Physical and Virtual NICs to a vSphere Standard SwitchMigrate Physical and Virtual NICs to a vSphere Distributed SwitchConfigure the Traffic Shaping PolicyConfigure the Security Policy727273Create a Virtual Machine from a Content Library ItemCreate a vApp from a Content Library ItemCreate a New VM-VM DRS Rule71737474Create a New VM-VMHost DRS Rule756 Sample Scripts for Managing vSphere Policy-Based Storage withVMware PowerCLI77Create a Tag-Based Storage Policy77Create a Capability-Based Storage Policy78Associate a Storage Policy with a Virtual Machine and Its Hard DiskVMware, Inc.795

VMware PowerCLI User's GuideDisassociate a Storage Policy Associated with a Virtual Machine and Its Hard DiskEnable SPBM on a Cluster and Verify that It Is EnabledRemove a Storage PolicyEdit a Storage Policy80808181Export and Import a Storage Policy82Create a Virtual Machine in a Datastore Compatible with Storage PolicyCreate a vSAN Datastore84Modify a vSAN Datastore85Create a vSAN Stretched ClusterCreate an NFS 4.1 Datastore828687Add a VASA Provider and Create a Policy88Invoke a Planned Failover on a Replication Group and Reverse the ReplicationAttach a Flat VDisk to a Virtual Machine90927 Sample Scripts for Managing VMware Site Recovery Manager withVMware PowerCLI93Connect to an SRM ServerProtect a Virtual Machine9394Create a Report of the Protected Virtual Machines94Create a Report of the Virtual Machines Associated with All Protection Groups958 Sample Scripts for Managing the vSphere Automation SDK withVMware PowerCLI97Create a Local Content Library on an Existing Datastore979 Sample Scripts for Managing vCloud Director with VMware PowerCLI 99Connect to a vCloud Director Server100Create and Manage Organizations101Create and Manage Organization Virtual Data Centers101Filter and Retrieve Organization Virtual Data Center NetworksImport a vApp Template from the Local StorageCreate a vApp Template from a vAppImport a vApp from vSphereCreate and Modify a vApp102103103104105Manage Virtual Machines with vApps105Manage Virtual Machines and Their Guest Operating Systems106Retrieve a List of the Internal and External IP Addresses of Virtual Machines in vAppsCreate and Manage Access Control RulesFilter and Retrieve vApp Networks108108Create vApp Networks for a Selected vAppCreate an Isolated vApp Network109109Create an NAT Routed vApp NetworkVMware, Inc.1071106

VMware PowerCLI User's GuideCreate a Direct vApp Network110Modify or Remove vApp Networks11110 Sample Scripts for Managing vCloud Air with VMware PowerCLI 113Connect to a vCloud Air Server113Retrieve vApps from a Data Center114Retrieve vApps from a Compute Instance114Running vCloud Director Scripts Against vCloud Air11511 Sample Scripts for Managing vSphere Update Manager withVMware PowerCLI116Connect to a vCenter Server SystemCreate Patch Baselines117Attach and Detach BaselinesScan a Virtual Machine116118118Check Virtual Machine Baseline StatusStage Patches119119Remediate a Virtual Machine120Upgrade Virtual Machine HardwareRemediate a ClusterRemediate a Host120120121Download Patches and Scan Objects12112 Sample Scripts for Managing vRealize Operations Manager withVMware PowerCLI123Connect to a vRealize Operations Manager ServerCheck Memory Waste Levels124Get Remediation RecommendationsChange Alert Ownership124125Create a Report for Problematic HostsVMware, Inc.1231257

VMware PowerCLI User's GuideThe VMware PowerCLI User's Guide provides information about installing and using theVMware PowerCLI cmdlets (pronounced “commandlets”) for managing, monitoring, automating, and handling operations for VMware vSphere, VMware Site Recovery Manager, vSphere Automation SDK,vCloud Director, vCloud Air, vSphere Update Manager, vRealize Operations Manager, VMware Horizon,NSX-T, and VMware Cloud on AWS components.To help you start with PowerCLI, this documentation includes descriptions of specific PowerCLI conceptsand features. In addition, this documentation provides a set of use case examples and sample scripts.Intended AudienceThis guide is intended for anyone who wants to install and use PowerCLI. This documentation is writtenfor administrators and developers who are familiar with virtual machine technology and WindowsPowerShell.nBasic administrators can use cmdlets included in PowerCLI to manage their vSphere,VMware Site Recovery Manager, vSphere Automation SDK, vCloud Director, vCloud Air,vSphere Update Manager, vRealize Operations Manager, VMware Horizon, NSX-T, andVMware Cloud on AWS infrastructure from the command line.nAdvanced administrators can develop PowerShell scripts that other administrators can reuse orintegrate into other applications.VMware, Inc.8

Introduction toVMware PowerCLI1VMware PowerCLI contains modules of cmdlets based on Microsoft PowerShell for automating vSphere,VMware Site Recovery Manager, vSphere Automation SDK, vCloud Director, vCloud Air,vSphere Update Manager, vRealize Operations Manager, VMware Horizon, NSX-T, andVMware Cloud on AWS administration. VMware PowerCLI provides a PowerShell interface to theVMware product APIs.nMicrosoft PowerShell BasicsPowerCLI is based on Microsoft PowerShell and uses the PowerShell basic syntax and concepts.nPowerCLI ConceptsPowerCLI cmdlets are created to automate VMware environments administration and to introducesome specific features in addition to the PowerShell concepts.Microsoft PowerShell BasicsPowerCLI is based on Microsoft PowerShell and uses the PowerShell basic syntax and concepts.Microsoft PowerShell is both a command-line and scripting environment, designed for Windows. It usesthe .NET object model and provides administrators with system administration and automationcapabilities. To work with PowerShell, you run commands, named cmdlets.nPowerShell Command-Line SyntaxPowerShell cmdlets use a consistent verb-noun structure, where the verb represents the action andthe noun represents the object to operate on.nPowerShell PipelinesA pipeline is a series of commands separated by the pipe operator .nPowerShell WildcardsPowerShell has a number of pattern-matching operators named wildcards that you can use tosubstitute one or more characters in a string, or substitute the complete string.nPowerShell Common ParametersThe Windows PowerShell engine retains a set of parameter names, referred to as commonparameters. All PowerShell cmdlets, including the PowerCLI cmdlets, support them.VMware, Inc.9

VMware PowerCLI User's GuidePowerShell Command-Line SyntaxPowerShell cmdlets use a consistent verb-noun structure, where the verb represents the action and thenoun represents the object to operate on.PowerShell cmdlets follow consistent naming patterns, ensuring that construction of a command is easy ifyou know the object that you want to work with.All command categories take parameters and arguments. A parameter starts with a hyphen and is usedto control the behavior of the command. An argument is a data value consumed by the command.A simple PowerShell command has the following syntax:command -parameter1 -parameter2 argument1, argument2PowerShell PipelinesA pipeline is a series of commands separated by the pipe operator .Each command in the pipeline receives an object from the previous command, performs some operationon it, and then passes it to the next command in the pipeline. Objects are output from the pipeline assoon as they become available.PowerShell WildcardsPowerShell has a number of pattern-matching operators named wildcards that you can use to substituteone or more characters in a string, or substitute the complete string.All wildcard expressions can be used with the PowerCLI cmdlets. For example, you can view a list of allfiles with a .txt extension by running dir *.txt. In this case, the asterisk * operator matches anycombination of characters.With wildcard patterns you can indicate character ranges as well. For example, to view all files that startwith the letter S or T and have a .txt extension, you can run dir [st]*.txt.You can use the question mark ? wildcard to match any single character within a sequence of characters.For example, to view all .txt files with names that consist of string and one more character at the end,run dir string?.txt.PowerShell Common ParametersThe Windows PowerShell engine retains a set of parameter names, referred to as common parameters.All PowerShell cmdlets, including the PowerCLI cmdlets, support them.Some of the PowerShell common parameters are Verbose, Debug, ErrorAction, ErrorVariable,OutVariable, and OutBuffer. For a full list of the common parameters and more details on their usage,run Get-Help about CommonParameters.VMware, Inc.10

VMware PowerCLI User's GuidePowerShell offers two risk mitigation parameters: WhatIf and Confirm.WhatIfDisplays the effects of a command without running it.ConfirmPrompts for confirmation before running a command that stops a programor service, or deletes data.PowerCLI ConceptsPowerCLI cmdlets are created to automate VMware environments administration and to introduce somespecific features in addition to the PowerShell concepts.nPowerCLI ModulesVMware PowerCLI 10.1.1 consists of multiple modules that you can install and use according toyour needs and environments.nInteroperability Between the PowerCLI and vCloud Director PowerCLI ModulesWith the RelatedObject parameter of PowerCLI cmdlets, you can retrieve vSphere inventoryobjects from cloud resources. This interoperability between the PowerCLI andvCloud Director PowerCLI modules expands cloud administration, automation, reporting, andtroubleshooting options for provider administrators.nSelecting Objects in PowerCLIIn PowerCLI, you can pass strings and wildcards to all parameters that take inventory objects,datastores, OSCustomizationSpec objects, and VIServer objects as arguments. This PowerCLIapproach is named Object-by-Name (OBN) selection.nProviding Login CredentialsWhen you provide login credentials in the command prompt or in a script file, a PowerShell limitationmight prevent PowerCLI from processing non-alphanumeric characters correctly. To prevent loginproblems, escape the non-alphanumeric characters in your credentials.nRunning PowerCLI Cmdlets AsynchronouslyBy default, PowerCLI cmdlets return an output only after completion of the requested tasks. If youwant a cmdlet to return to the command line immediately, without waiting for the tasks to complete,you can use the RunAsync parameter.nManaging Default Server ConnectionsBy default, PowerCLI and PowerCLI cmdlets run on the vCenter Server systems or vCloud Directorservers you are connected to, if no target servers can be determined from the provided parameters.nCustomization Specification Objects in PowerCLIPowerCLI provides two types of objects for customization specification: persistent andnonpersistent.nUsing ESXCLI with PowerCLIPowerCLI provides you the capability to use ESXCLI through its console.VMware, Inc.11

VMware PowerCLI User's GuidenPowerCLI Inventory ProviderThe Inventory Provider is designed to expose an unfiltered inventory view of the inventory itemsfrom a server.nPowerCLI Datastore ProviderThe Datastore Provider is designed to provide access to the contents of one or more datastores.nPowerCLI About ArticlesYou can learn more about some PowerCLI concepts and features from the built-in help articlesnamed about articles. You can access them through a running PowerCLI process.PowerCLI ModulesVMware PowerCLI 10.1.1 consists of multiple modules that you can install and use according to yourneeds and environments.The following table lists all official VMware PowerCLI modules.ModuleDescriptionVMware.PowerCLIProvides a root module which other modules are dependenton. This module ensures the PowerCLI product can beinstalled, upgraded, and removed as a complete package ifneeded.VMware.VimAutomation.CoreProvides cmdlets for automated administration of the ides functionality that is common to all PowerCLI modules.This module has no cmdlets, but is required for other modulesto function correctly.VMware.VimAutomation.SdkProvides SDK functionality that is needed by all PowerCLImodules. This module has no cmdlets, but is required for othermodules to function correctly.VMware.VimAutomation.VdsProvides cmdlets for managing vSphere distributed switchesand distributed port groups.VMware.VimAutomation.Cis.CoreProvides cmdlets for managing vSphere Automation SDKservers.VMware.VimAutomation.StorageProvides cmdlets for managing vSphere policy-based s utility scripts for storage.VMware.VimAutomation.HAProvides the Get-DrmInfo cmdlet for managing HighAvailability functionality.VMware.VimAutomation.LicenseProvides the Get-LicenseDataManager cmdlet for managingVMware License components.VMware.ImageBuilderProvides cmdlets for managing depots, image profiles, andVIBs.VMware.DeployAutomationProvides cmdlets that provide an interface to VMware AutoDeploy for provisioning physical hosts with ESXi software.VMware.VimAutomation.CloudProvides cmdlets for automating vCloud Director features.VMware, Inc.12

VMware PowerCLI User's rovides cmdlets for automating vCloud Air features.VMware.VumAutomationProvides cmdlets for automating vSphere Update Managerfeatures.VMware.VimAutomation.vROpsProvides cmdlets for automating vRealize Operations Managerfeatures.VMware.VimAutomation.SrmProvides cmdlets for managingVMware Site Recovery Manager features.VMware.VimAutomation.HorizonViewProvides cmdlets for automating VMware Horizon features.VMware.VimAutomation.NsxtProvides cmdlets for managing NSX-T servers.VMware.VimAutomation.VmcProvides cmdlets for automating VMware Cloud on AWSfeatures.VMware.VimProvides a module that contains the vSphere low-level bindinglibraries.Interoperability Between the PowerCLI andvCloud Director PowerCLI ModulesWith the RelatedObject parameter of PowerCLI cmdlets, you can retrieve vSphere inventory objectsfrom cloud resources. This interoperability between the PowerCLI and vCloud Director PowerCLI modulesexpands cloud administration, automation, reporting, and troubleshooting options for provideradministrators.Note To use the interoperability feature, you must install the PowerCLI and vCloud Director PowerCLImodules, and connect both to a vCloud Director server and a vCenter Server system.Retrieving vSphere Inventory Objects from Cloud ResourcesProvider administrators can use the RelatedObject parameter of PowerCLI cmdlets to retrieve vSphereinventory objects from vCloud Director objects. Passing the retrieved objects to the cmdlets of theVMware.VimAutomation.Core and VMware.VimAutomation.VDS modules, extends administrationoptions.Important Use of the VMware.VimAutomation.Core and VMware.VimAutomation.VDS modules tomodify the configuration of objects that are managed by vCloud Director might result in unpredictablebehavior of the cloud environment.VMware, Inc.13

VMware PowerCLI User's GuideTable 1‑1. List of Supported vSphere Inventory Objects You Can Retrieve from Cloud ObjectsCloud ObjectRetrieved vSphere Inventory VDPortgroupSample Script for Retrieving thevSphere Inventory ObjectGet-ProviderVdc -Name'MyProviderVdc' Get-DatastoreGet-CIVM -Name 'MyCloudVM' Get-VMGet-NetworkPool -Name'MyNetworkPool' Get-VDSwitchGet-NetworkPool -Name'MyNetworkPool' GetVDPortGroupGet-ExternalNetwork -Name'MyExternalNetwork' GetVDPortGroupSelecting Objects in PowerCLIIn PowerCLI, you can pass strings and wildcards to all parameters that take inventory objects, datastores,OSCustomizationSpec objects, and VIServer objects as arguments. This PowerCLI approach is namedObject-by-Name (OBN) selection.Instead of assigning an object name to a cmdlet parameter, users can pass the object through a pipelineor a variable. For example, the following three commands are interchangeable:nRemove-VM -VM "Win 7 SP1"nGet-VM -Name "Win 7 SP1" Remove-VMnRemove-VM -VM (Get-VM -Name "Win 7 SP1")Note In PowerCLI, passing strings as pipeline input is not supported.If you provide a non-existing object name, an OBN failure occurs. In such cases, PowerCLI generates anon-terminating error and runs the cmdlet ignoring the invalid name.For more details about OBN, run help about OBN.Example: An OBN failureThis example illustrates the occurrence of an OBN failure.Set-VM –VM “VM1”, “VM2”, “VM3” –Server server1, server2 –MemoryGB 4VMware, Inc.14

VMware PowerCLI User's GuideIf the VM2 virtual machine does not exist on either of the selected servers, PowerCLI generates a nonterminating error and applies the command only on the VM1 and VM3 virtual machines.Providing Login CredentialsWhen you provide login credentials in the command prompt or in a script file, a PowerShell limitationmight prevent PowerCLI from processing non-alphanumeric characters correctly. To prevent loginproblems, escape the non-alphanumeric characters in your credentials.To escape non-alphanumeric characters in PowerCLI, you need to place the expression that containsthem in single quotes (').Note When you provide your login credentials in the Specify Credential dialog box, you do not need toescape non-alphanumeric characters.Example: Connecting to a vCenter Server SystemThis example illustrates how to escape non-alphanumeric characters when connecting to a selectedvCenter Server instance with the Adminis!ra!or user name and the pa word password.Connect-VIServer -Server 10.23.112.235 -Protocol https -Username 'Adminis!ra!or' -Password 'pa word'Running PowerCLI Cmdlets AsynchronouslyBy default, PowerCLI cmdlets return an output only after completion of the requested tasks. If you want acmdlet to return to the command line immediately, without waiting for the tasks to complete, you can usethe RunAsync parameter.When you use the RunAsync parameter, the cmdlet returns Task objects instead of its usual output. TheStatus property of a returned Task object contains a snapshot of the initial state of the task. This state isnot updated automatically and has the values Error, Queued, Running, or Success. You can refresh atask state by retrieving the task object with the Get-Task cmdlet. If you want to observe the progress of arunning task and wait for its completion before running other commands, use the Wait-Task cmdlet.Note In PowerCLI, the RunAsync parameter affects only the invocation of a cmdlet and does not controlwhether the initiated tasks run consecutively or in parallel. For example, the Remove-VM cmdlet mightremove the selected virtual machines simultaneously or consecutively depending on the internal design ofPowerCLI. To make sure that tasks initiated by a cmdlet run consecutively, run the cmdlet in a loop, eachtime applying it to a single object.Example: Running Remove-VM with and without the RunAsync parameterRemove-VM vmListVMware, Inc.15

VMware PowerCLI User's GuideThe command returns no output when all virtual machines stored in the vmList variable are removed,irrespective of whether they are removed simultaneously.Remove-VM vmList -RunAsyncThe command returns an output that consists of one or more Task objects immediately.Managing Default Server ConnectionsBy default, PowerCLI and PowerCLI cmdlets run on the vCenter Server systems or vCloud Directorservers you are connected to, if no target servers can be determined from the provided parameters.When you connect to a vCenter Server system by using Connect-VIServer, the server connection isstored in the DefaultVIServers array variable. This variable contains all connected servers for the currentPowerCLI session. To remove a server from the DefaultVIServers variable, you can either useDisconnect-VIServer to close all active connections to this server, or modify the value of DefaultVIServers manually.When you connect to a vCloud Director system by using Connect-CIServer, the server connection isstored in the DefaultCIServers array variable. This variable contains all connected servers for the currentsession. To remove a server from the DefaultCIServers variable, you can either use DisconnectCIServer to close all active connections to this server, or modify the value of DefaultCIServersmanually.Customization Specification Objects in PowerCLIPowerCLI provides two types of objects for customization specification: persistent and nonpersistent.Persistent CustomizationPersistent customization specification objects are stored on the vSphere server. All persistentcustomization specifications created by using vSphere Client or VMware PowerCLI 4.1 or later areencrypted. Encrypted customization specifications can be applied only by the server that has encryptedthem.Nonpersistent CustomizationNonpersistent customization specification objects exist only inside the current PowerShell process.Nonpersistent customization specification objects are not encrypted, but cloning them to a vSphere serverencrypts them.Using ESXCLI with PowerCLIPowerCLI provides you the capability to use ESXCLI through its console.PowerCLI provides two approaches for working with ESXCLI:nThrough the Get-ESXCli cmdlet, which provides direct access to the ESXCLI namespaces,applications, and commands.VMware, Inc.16

VMware PowerCLI User's GuidenThrough .NET methods, which you use to create managed objects that correspond to specificESXCLI applications. To access the ESXCLI, you can call methods on these managed objects.Note To call a method of an ESXCLI object, you must provide values for all parameters. If you wantto omit a given parameter, pass null as its argument.PowerCLI Inventory ProviderThe Inventory Provider is designed to expose an unfiltered inventory view of the inventory items from aserver.It enables navigation and file-style management of the VMware vSphere inventory. By creating aPowerShell drive based on a managed object (such as a data center), you can obtain a view of itscontents and the relationships between the items. In addition, you can move, rename, or delete objectsby running commands from the PowerShell console.When you connect to a server with Connect-VIServer, the cmdlet builds two default inventory drives: viand vis. The vi inventory drive shows the inventory on the last connected server. The vis drive containsthe inventory of all vSphere servers connected within the current PowerCLI session.You can use the default inventory drives or create custom drives based on the default ones.PowerCLI Datastore ProviderThe Datastore Provider is designed to provide access to the contents of one or more datastores.The items in a datastore are files that contain configuration, virtual disk, and the other data associatedwith a virtual machine.When you connect to a server with Connect-VIServer, the cmdlet builds two default datastore drives:vmstore and vmstores. The vmstore drive provides a list of the datastores available on the vSphereserver that you last connected to.Note If you establish multiple connections to the same vSphere server, the vmstore drive is notupdated.The vmstores drive contains all datastores available on all vSphere servers that you connected to withinthe current PowerCLI session.You can use the default datastore drives or create custom drives based on the default ones.PowerCLI About ArticlesYou can learn more about some PowerCLI concepts and features from the built-in help articles namedabout articles. You can access them through a running PowerCLI process.Running Help About * lists all built-in Windows PowerShell and VMware PowerCLI about articles.VMware, Inc.17

VMware PowerCLI User's GuideTable 1‑2. Accessing Built-In Help Articles for PowerCLIArticle TitleCommandArticle DescriptionCustomer Experience ImprovementProgram (CEIP)Help About CEIPProvides information about VMware'sCustomer Experience ImprovementProgram ("CEIP").Handling Invalid CertificatesHelp About Invalid CertificatesWhen you connect to a server, VMwarePowerCLI checks if the server certificateis valid. If the certificate is not trusted forthis server, by default, VMwarePowerCLI fails to connect to the server.Object-by-Name (OBN)Help About OBNTo help you save time and effort,PowerCLI lets you select objects by theirnames.VMware PowerCLI ObjectsHelp About PowerCLI ObjectsFor their input and output, the PowerCLIcmdlets use a set of .NET types thatreside in theVMware.VimAutomation.ViCore.Types namespace.Using the RunAsync ParameterHelp About RunAsyncWhen you set the RunAsync parameter,you indicate that you want to run thecmdlet asynchronously.Authenticating with a vCenter ServerSystem or a vCloud ServerHelp About Server AuthenticationTo authenticate with vCenter Server andvCloud Director servers, you can providea user name and p

VMware PowerCLI User's Guide The VMware PowerCLI User's Guide provides information about installing and using the VMware PowerCLI cmdlets (pronounced "commandlets") for managing, monitoring, automating, and handling operations for VMware vSphere, VMware Site Recovery Manager , vSphere Automation SDK ,

Related Documents:

VMware PowerCLI is one such third-party add-on to Microsoft PowerShell. Virtualization administrators have long managed VMware vSphere environments, often comprised of tens, hundreds, or thousands of Microsoft Windows guests using PowerShell and PowerCLI. VMware PowerCLI over 600 cmdlets for managing and

the version number to ensure that the cmdlets references throughout the book are available to you. Each version of PowerCLI builds additional native cmdlets and functionality. To check the version you are running, open a PowerCLI prompt and run Get-PowerCLIVersion. The recipes in this book are built and tested using VMware PowerCLI version 5.5

2.7 VMware vCenter Support Assistant 22 2.8 VMware Continuent 23 2.9 VMware Hyper-Converged Infrastructure Kits 23 2.10 VMware Site Recovery Manager 23 2.11 VMware NSX 24 2.12 VMware NSX Advanced Load Balancer 28 2.13 VMware SD-WAN by VeloCloud 29 2.14 VMware Edge Network Intelligence 30 2.15 VMware NSX Firewall 30

the VMware Hybrid Cloud Native VMware management tools extend on-prem services across VMware Hybrid Cloud vRealize adapters allow "first class citizen" status for VMware Cloud on AWS Leverage same in-house VMware tools and processes across VMware Hybrid Cloud Support the cloud agility strategy of the organisation without disruption

VMware also welcomes your suggestions for improving our other VMware API and SDK documentation. Send your feedback to: docfeedback@vmware.com. . , and can assist development of applications for VMware vSphere and vCloud. The user interface retains . In the VMware Developer Center, find the introduction page for VMware Workbench IS. At the .

VMware, Inc. 9 About ThisBook The Guest Operating System Installation Guide provides users of VMware ESX Server, VMware GSX Server, VMware Server, VMware ACE, VMware Workstation, and VMware Fusion information about installing guest operating systems in

VMware ESX Server uses a virtual disk file format different from the format used by VMware products that run on a host operating system—such as VMware GSX Server, VMware Server, VMware Player, VMware Workstation, and VMware Fusion. As a result, when you move a virtual machine from a system

ASTM INTERNATIONAL Helping our world work better Standards Catalog 2016 www.astm.org Highlights in this issue: 24 ook of B Standards 2 uilding Codes B 9 nline TrainingO 6 MNL 43 - 3rd 13 Proficiency Testing Standards Books Journals and Software Training Laboratory QA Programs. What’s New from ASTM International ASTM Compass Your Portal for Standards, Testing, Learning & More Give your .