PowerCLI Reference

Set-VMHostProfileUserConfiguration

Synopsis

This cmdlet modifies the user password configuration for the specified account within a host profile.

Syntax

Set-VMHostProfileUserConfiguration [-UserConfiguration] <VMHostProfileUserConfiguration[]> [-Password <String>] -PasswordPolicy {Default | UserInput | Fixed} [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostProfileUserConfiguration

Detailed Description

This cmdlet modifies the user password configuration for the specified account within a host profile.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
UserConfigurationVMHostProfileUserConfiguration[]Specifies the user configuration that you want to modify.trueTrue (ByValue)
PasswordStringSpecifies the user account password. This parameter is required in case of fixed password policy.falseFalse
PasswordPolicyVMHostProfilePasswordPolicySpecifies the desired password policy type.trueFalse
ServerVIServer[]Specifies the vCenter Server systems 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 the Connect-VIServer cmdlet.falseTrue (ByValue)

Return Type

VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileUserConfiguration[]

Notes

Examples

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

PS C:\> $config = Get-VMHostProfileUserConfiguration -HostProfile "Host_Profile" -UserName "root"

PS C:\> Set-VMHostProfileUserConfiguration -UserConfiguration $config -PasswordPolicy Default

Changes the password policy type to default for the root user configuration within the host profile named Host_Profile.


Copyright © VMware, Inc. All rights reserved.