Get-VMHostAttributes

Gets the identifying attributes of a host. These are the attributes that the rules will match against.

Syntax

-VMHost  <VMHost>
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost
VMHost named
  • pipeline
  • Host to get the attributes for. Use Get-VMHost to retrieve the host object associated with a host name.

    Output

    Examples


    Example 1

    C:\PS> Get-VMHostAttributes myhost
    "ipv4" "192.168.1.1"
    "vendor" "VMware"

    Retrieves the identifying attributes for the host named myhost.

    Example 2

    C:\PS> Get-VMhost "myhost" | Get-VMHostAttributes
    "ipv4" "192.168.1.1"
    "vendor" "VMware"

    Retrieves the identifying attributes for the host named myhost.

    Related Commands

    Feedback

    Was this page helpful?