PowerCLI Reference

Get-VMHostModule

Synopsis

This cmdlet retrieves the option strings of the specified host modules.

Syntax

Get-VMHostModule [-VMHost] <VMHost[]> [[-Name] <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Set-VMHostModule

Detailed Description

This cmdlet retrieves the option strings of the specified host modules. To specify a server different from the default one, use the Server parameter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the names of the host modules you want to retrieve. To find a list of the valid module names for different servers, see the vSphere documentation or in the ESX console, run "esxcfg-module -l". This parameter is mandatory only if you are connected to ESX/vCenter Server with version earlier than 4.0.falsefalse
VMHostVMHost[]Specifies hosts to retrieve their modules.truetrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsetrue (ByValue)

Return Type

Zero or more VmHostModule objects

Notes

Examples

-------------- Example 1 --------------

Get-VMHostModule -Name Shaper

Retrieves the option string for the specified host module.


Copyright © VMware, Inc. All rights reserved.