PowerCLI Reference

Get-VMHostProfileUserConfiguration

Synopsis

This cmdlet retrieves the user password configuration for the given host profile.

Syntax

Get-VMHostProfileUserConfiguration [-HostProfile] <VMHostProfile[]> [-Server <VIServer[]>] [-UserName <String[]>] [<CommonParameters>]

Related Commands

Online Version
Set-VMHostProfileUserConfiguration

Detailed Description

This cmdlet retrieves the user password configuration for the given host profile. The user password configuration encapsulates the hosts password policy type and password.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
HostProfileVMHostProfile[]virtual machine host profiletrueTrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no 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.falseTrue (ByValue)
UserNameString[]There can be multiple accounts within a host profile. This parameter filters the result for a particular account. If no value is passed to this parameter, configurations are returned for all accounts by default.falseFalse

Return Type

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

Notes

Examples

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

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

Retrieves the user password configuration for the username root within the HostProfile named Host_Profile


Copyright © VMware, Inc. All rights reserved.