Get-VMHostAttributes
Gets the identifying attributes of a host. These are the attributes that the rules will match against.
Syntax
-VMHost
<VMHost>
[CommonParameters]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
VMHost | named |
|
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
VMHostAttributes
Gets the identifying attributes of a host.
VMHostImageProfile
Gets the image profile associated with the specified ESXi host.
VMHostMatchingRules
Retrieves the list of rules in the rule set that match a specified host.