-VMHost<Host>

For more information about each type of host, type Get-Help Add-SCVMHost -detailed.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Host

Examples

Example 1: Set the credentials for a specific VMware ESX host

The first command gets the Run As account object named ESX Host Computer Acct, and then stores the object in the $RunAsAccount variable.

The second command gets the ESX host object named ESXHost02, and then stores the object in the $ESXHost variable.

The last command associates the VMware ESX host with VMM as a managed host, and specifies that the Run As account stored in $Credential should be used to access ESXHost02.

Example 2: Set the credentials and certificate for a VMware ESX host

The first command gets the Run As account object named ESX Host Computer Acct, and then stores the object in the $RunAsAccount variable. The required credentials for this operation are either a root account (root/<password>) or the account for the VMware delegated administrator defined earlier in VirtualCenter Server for this ESX host.

The second command gets the VMware ESX host object named ESXHost03, and then stores the object in the $ESXHost variable.

The third command uses the Get-SCCertificate cmdlet to get the certificate object from ESXHost02, and then stores the object in the $Cert variable.

The last command associates this VMware ESX Server with VMM as a managed host and specifies that the credentials used to access ESXHost02 are those stored in $RunAsAccount.