PowerCLI Reference

Set-VMHostModule

Synopsis

This cmdlet overrides the host module options with the given ones.

Syntax

Set-VMHostModule [-HostModule] <VmHostModule[]> [-Options] <String> [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostModule

Detailed Description

This cmdlet overrides the host module options with the given ones.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
HostModuleVmHostModule[]Specifies the host module you want to configure.trueTrue (ByValue)
OptionsStringSpecifies the new options of the host module.trueFalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

Zero or more modified VmHostModule objects

Notes

Supported only on ESX 4.1, ESX 4i, and later.

Examples

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

$module = Get-VMHostModule -Name Shaper

Set-VMHostModule -HostModule $module -Options "New options text"

Overrides the options of the Shaper host module with the provided ones.

-------------------------- Example 2 --------------------------

Get-VMHostModule Shaper | Set-VMHostModule -Options "New options text" -Confirm

Overrides the options of the Shaper host module with the provided ones.


Copyright © VMware, Inc. All rights reserved.