< Back

Get-VMHostHardware

Sun Jan 19, 2020 6:55 pm

NAME Get-VMHostHardware



SYNOPSIS

This cmdlet retrieves ESXi host hardware and firmware information.





SYNTAX

Get-VMHostHardware -Id <String[]> [-Server <VIServer[]>] [-SkipAllSslCertificateChecks] [-SkipCACheck]

[-SkipCNCheck] [-SkipRevocationCheck] [-WaitForAllData] [<CommonParameters>]



Get-VMHostHardware [-Server <VIServer[]>] [-SkipAllSslCertificateChecks] [-SkipCACheck] [-SkipCNCheck]

[-SkipRevocationCheck] [-VMHost <VMHost[]>] [-WaitForAllData] [<CommonParameters>]





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

-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.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? 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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SkipAllSslCertificateChecks [<SwitchParameter>]

Indicates that all checks for SSL server certificates are skipped.



Note: You should use this parameter only for trusted computers.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? 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.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? 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.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-SkipRevocationCheck [<SwitchParameter>]

Indicates that the revocation check for server certificates is skipped.



Note: You should use this parameter only for trusted computers.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? 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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-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.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VMHostHardware objects







NOTES





This cmdlet is not supported on the Core edition of PowerShell.



-------------------------- 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.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... dware.html