This cmdlet modifies the password for an existing user account on the Lenovo XClarity Administrator server.
Modifying the password of user account other than the currently logged in user is the same as resetting that user’s password (without checking that user’s password).
To modify other properties for an existing user account, use the Set-LXCAUserAccount cmdlet.
Set-LXCAUserAccountPassword [-Connection Connection]
-CurrentPassword SecureString
-NewPassword SecureString
-ConfirmPassword SecureString
[CommonParameter]
Set-LXCAUserAccountPassword [-Connection Connection]
-Host String
[-Port Int]
[-Proxy WebProxy]
-UserName String
-CurrentPassword SecureString
-NewPassword SecureString
-ConfirmPassword SecureString
[CommonParameter]
This cmdlets modifies the password for the user account. No object is returned.
The following example modifies the password for a currently authenticated user.
cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Port 443 -Credential $cred
$Password = ConvertTo-SecureString "curpwd" -AsPlainText -Force
$NewPassword = ConvertTo-SecureString "newpwd" -AsPlainText -Force
$ConfirmPassword = ConvertTo-SecureString "newpwd" -AsPlainText -Force
Set-LXCAUserAccountPassword -CurrentPassword $Password -NewPassword $NewPassword`
-ConfirmPassword $ConfirmPassword
Disconnect-LXCA
The following example illustrates how to use this cmdlet to modify the password for a user that is not currently authenticated with the XClarity Administrator server.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$Password = ConvertTo-SecureString "curpwd" -AsPlainText -Force
$NewPassword = ConvertTo-SecureString "newpwd" -AsPlainText -Force
$ConfirmPassword = ConvertTo-SecureString "newpwd" -AsPlainText -Force
Set-LXCAUserAccountPassword -Host 192.0.2.0 -UserName "userid" -CurrentPassword $Password`
-NewPassword $NewPassword -ConfirmPassword $ConfirmPassword
Disconnect-LXCA