Remove-VMHostAccount

This cmdlet removes the specified host accounts . These can be HostGroupAccount objects, HostUserAccount objects, or both.

Syntax

-HostAccount  <HostAccount[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
HostAccount
HostAccount[] named
  • pipeline
  • Specifies the host accounts you want to remove.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    Examples


    Example 1

    Get-VMHostAccount -Group -ID user | Remove-VMHostAccount -Confirm

    Removes the group account with ID "user". Asks for confirmation before running the command.

    Related Commands

    Feedback

    Was this page helpful?