• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

image

PLAY BUTTON

image

PLAY BUTTON

image

Progress

1/15

Click to flip

15 Cards in this Set

  • Front
  • Back
Define a variable to store the ESX host name and enter the name of the server.
[vSphere PowerCLI] C:\>$ESXHost = "<ESX_host_name>"
Define a variable to store the ESX host credentials and enter the credentials for the root user.
[
VMware PowerCLI] C:\>$HostCred = Get-Credential
How would you connect to the ESX host using the previous variables.
[vSphere PowerCLI] C:\>Connect-VIServer $ESXHost -Credential
$HostCred
Disconnect from the ESX host using the previous variables.
[vSphere PowerCLI] C:\>Disconnect-VIServer $ESXHost
Define a variable to hold the vCenter Server name and enter the name.
[vSphere PowerCLI] C:\>$vc = "<vCenter_Server_name>"
Define a variable to store the vCenter Server administrator name and password and enter the values.
[vSphere PowerCLI] C:\>$vcCred = Get-Credential
Connect to the vCenter Server system.
[vSphere PowerCLI] C:\>Connect-VIServer $vc -Credential $vcCred
Check to see if any datacenters have been created in the vCenter Server system.
[vSphere PowerCLI] C:\>Get-DataCenter
Create a datacenter named DC,
[vSphere PowerCLI] C:\>New-DataCenter -Location (Get-Folder
-NoRecursion) -Name DC<DC Name>
Determine if there are ESX hosts connected to the vCenter Server system.
[vSphere PowerCLI] C:\>Get-VMHost
Connect the ESX host to the vCenter Server system.
[vSphere PowerCLI] C:\>Add-VMHost $ESXHost -Credential $hostcred
-Location <datacenter_name> -force:$true
Read the credentials from the xml file and store them in a variable.
[vSphere PowerCLI] C:\>$cred = Get-VICredentialStoreItem -Host $vc
-File C:\Scripts\Creds.xml
Retrieve a list of vSphere Power CLI cmdlets.
[vSphere PowerCLI]C:\>Get-VICommand
Get help for the New-VM cmdlet.
[vSphere PowerCLI]C:\>Get-Help New-VM
Display an example of how to use the New-VM cmdlet.
[vSphere PowerCLI]C:\>Get-Help New-VM -examples