## PowerCLI Reference

# Set-VMHostModule

## Synopsis

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

Syntax

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

Related Commands

Online version
Get-VMHostModule

Detailed Description

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

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
HostModule | VmHostModule[] | Specifies the host module you want to configure. | true | true (ByValue)
Options | String | Specifies the new options of the host module. | true | false
Confirm | SwitchParameter | If 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. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

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.