< Back

Set-VMHostProfileUserConfiguration

Sun Jan 19, 2020 7:11 pm

NAME 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>]





DESCRIPTION

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





PARAMETERS

-Password <String>

Specifies the user account password. This parameter is required in case of fixed password policy.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PasswordPolicy <VMHostProfilePasswordPolicy>

Specifies the desired password policy type.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? 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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-UserConfiguration <VMHostProfileUserConfiguration[]>

Specifies the user configuration that you want to modify.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

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





VMware.VimAutomation.ViCore.Types.V1.VIServer[]







OUTPUTS

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







NOTES









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



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... ofile.html

Get-VMHostProfileUserConfiguration