powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostAttributes



NAME
Get-VMHostAttributes

SYNOPSIS
Gets the identifying attributes of a host.

SYNTAX
Get-VMHostAttributes [-VMHost] []


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


PARAMETERS
-VMHost
Host to get the attributes for. Use Get-VMHost to retrieve the host object associated with a host name.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- 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 LINKS
Get-VMHost