Syntax
Set-VMHostProfileUserConfiguration [-UserConfiguration] <VMHostProfileUserConfiguration[]> [-Password <String>] -PasswordPolicy {Default | UserInput | Fixed} [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet modifies the user password configuration for the specified account within a host profile.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
UserConfiguration | VMHostProfileUserConfiguration[] | Specifies the user configuration that you want to modify. | true | True (ByValue) | |
Password | String | Specifies the user account password. This parameter is required in case of fixed password policy. | false | False | |
PasswordPolicy | VMHostProfilePasswordPolicy | Specifies the desired password policy type. | true | False | |
Server | VIServer[] | 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. | false | True (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.