vSphere PowerCLI Reference

Get-VMHostModule

Synopsis

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

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[]Specify 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[]Specify hosts to retrieve their modules.truetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given 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

VmHostModule

Notes

Examples

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

Get-VMHostModule -Name Shaper

Retrieves the option string for the specified host module.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.