Objective 5.1 of VCAP6-Deploy exam covers following topics:
- Install and configure vSphere PowerCLI
- Use basic and advanced PowerCLI Cmdlets to manage a vSphere deployment
- Analyze a sample script, then modify the script to perform a given action
- Use PowerCLI to configure and administer Auto Deploy (including Image Builder)
- Create a report from a PowerCLI script
Lets walk through each topic one by one.
Install and configure vSphere PowerCLI
Installation of PowerCLI is pretty straight forward. Just run the installer and hit Next..Next.
Once the installation is completed, we will need to set the Execution Policy prior to executing any command via PowerCLI.
Set the Execution Policy by running comamnd: Set-ExecutionPolicy RemoteSigned
Current execution policy can be checked by running command: Get-ExecutionPolicy
1 2 3 |
<span style="color: #000000;"><em>PowerCLI C:> Get-ExecutionPolicy</em></span> <span style="color: #000000;"><em>RemoteSigned</em></span> <span style="color: #000000;"><em>PowerCLI C:></em></span> |
Use basic and advanced PowerCLI Cmdlets to manage a vSphere deployment
It is not possible to show all PowerCLI commands here as the list is very long. … Read More