Set-VMHostProfileUserConfiguration

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

Syntax

-PasswordPolicy  <VMHostProfilePasswordPolicy>
-UserConfiguration  <VMHostProfileUserConfiguration[]>
[-Password  <String>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
PasswordPolicy
VMHostProfilePasswordPolicy named Specifies the desired password policy type.
required
UserConfiguration
VMHostProfileUserConfiguration[] named
  • pipeline
  • Specifies the user configuration that you want to modify.
    optional
    Password
    String named Specifies the user account password. This parameter is required in case of fixed password policy.
    optional
    Server
    VIServer[] named
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

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

    Examples


    Example 1

    $config = Get-VMHostProfileUserConfiguration -HostProfile "Host_Profile" -UserName "root"
    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.

    Related Commands

    Feedback

    Was this page helpful?