• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/15

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

15 Cards in this Set

  • Front
  • Back
Define a variable to store the ESX host name and enter the name of the server.
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
Which command is used to connect to the ESX host.
[vSphere PowerCLI] C:\>Connect-VIServer $ESXHost -Credential $HostCred
Which command is used to disconnect from the ESX host.
[vSphere PowerCLI] C:\>Disconnect-VIServer $ESXHost
Which command is used to verify the connection to the server by running a vSphere PowerCLI cmdlet.
[vSphere PowerCLI] C:\>Get-VMHost
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
Which command is used to connect to the vCenter Server system.
[vSphere PowerCLI] C:\>Connect-VIServer $vc -Credential $vcCred
Which command is used to check to see if any datacenters have been created in the vCenter Server system.
[vSphere PowerCLI] C:\>Get-DataCenter
Which command is used to create a datacenter named DC,
[vSphere PowerCLI] C:\>New-DataCenter -Location (Get-Folder -NoRecursion) -Name DC
Run a command that returns a list of virtual machines with connected CD-ROM drives.
[vSphere PowerCLI] C:\>Get-VM | Where
{($_.CDDrives [0].Connectionstate.Connected }
Run a command that returns a list of virtual machines IP Addresses
[vSphere PowerCLI] C:\Get-VMGuest $vm | Select -ExpandProperty
IPAddress
Use the Get-VMGuest command to return the capacity and free space of a virtual machine
disk.
[vSphere PowerCLI] C:\>Get-VMGuest $vm | Select -ExpandProperty
disks
Display the virtual machine name and the hard disk capacity for all of the virtual machines.
[vSphere PowerCLI] C:\>Get-VM | Select Name, @{N = "Capacity" ; E =
{$_ | get-vmguest | select -expand disks | select Capacity}}
Run a command to return a list of datastores that this ESX host can access.
[vSphere PowerCLI] C:\>Get-VMHost $vmHost | Get-DataStore