Syntax
Get-VMHostHardware -Id <String[]> [-Server <VIServer[]>] [-SkipAllSslCertificateChecks] [-SkipCACheck] [-SkipCNCheck] [-SkipRevocationCheck] [-WaitForAllData] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves hardware and firmware information for the hosts specified by the VMHost parameter. To specify a server different from the default one, use the Server parameter.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Id | String[] | Filters the ESXi hosts by ID.
Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list. | true | False | |
Server | VIServer[] | This parameter is required when you specify the host by name. In this case, the host with the specified name is searched on the specified servers and hardware information is retrieved from it. If a VMHost object is passed to the VMHost parameter, the Server parameter is not used. | false | False | |
SkipAllSslCertificateChecks | SwitchParameter | Indicates that all checks for SSL server certificates are skipped.
Note: You should use this parameter only for trusted computers. | false | False | |
SkipCACheck | SwitchParameter | Indicates that when connecting through HTTPS, the client does not validate that the server certificate is signed by a trusted certification authority (CA).
Note: You should use this parameter only when the remote server can be trusted by using another mechanism, such as when the remote computer is part of a network that is physically secure and isolated. | false | False | |
SkipCNCheck | SwitchParameter | Indicates that the certificate common name (CN) of the server does not need to match the hostname of the server.
Note: You should use this parameter only for trusted computers. | false | False | |
SkipRevocationCheck | SwitchParameter | Indicates that the revocation check for server certificates is skipped.
Note: You should use this parameter only for trusted computers. | false | False | |
VMHost | VMHost[] | Specifies the hosts for which you want to retrieve hardware information. If not specified, the cmdlet retrieves hardware information for all hosts on all default connections. | false | True (ByValue) | |
WaitForAllData | SwitchParameter | If specified, forces all data for each result object to be retrieved before that object is returned. If this parameter is not specified, retrieval of some of the data in the output objects might be postponed to an arbitrary point in time between the cmdlet call and the first time the data is accessed through the corresponding property. As a result, not specifying this parameter makes the cmdlet return data faster, but different portions of the data in result objects might come from different points in time. | false | False |
Return Type
Zero or more VMHostHardware objectsNotes
This cmdlet is not supported on the Core edition of PowerShell.Examples
-------------------------- Example 1 --------------------------
Get-VMHost "MyVMHost" | Get-VMHostHardware
Retrieves hardware information about the "MyVMHost" host.
-------------------------- Example 2 --------------------------
Get-VMHostHardware -VMHost "MyVMHost" -SkipAllSslCertificateChecks
Retrieves hardware information about the "MyVMHost" host, skipping all verifications of SSL server certificates.