powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-VMHostModule



NAME
Set-VMHostModule

SYNOPSIS
Overrides the host module options with the given ones.

SYNTAX
Set-VMHostModule [-HostModule] [-Options] [-WhatIf] [-Confirm] []


DESCRIPTION
Overrides the host module options with the given ones.


PARAMETERS
-HostModule
Specify the host module you want to configure.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-Options
Specify the new options of the host module.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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.

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VmHostModule


NOTES


Supported only on ESX 3.5 U2, ESX 3i U2, ESX 4.0, ESX 4i, and later.

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

C:\PS>$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 --------------

C:\PS>Get-VMHostModule Shaper | Set-VMHostModule -Options "New options text" -Confirm


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






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-VMHostModule.html
Get-VMHostModule