Syntax
Set-VMHostModule [-HostModule] <VmHostModule[]> [-Options] <String> [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed 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 objectsNotes
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.