Summary
Sets admin password on connected dock
Syntax
Set-HPDockAdminPassword [-AdminPassword] <SecureString> [[-CurrentPassword] <SecureString>] [<CommonParameters>]
Description
This command sets or changes the admin password on connected dock.
Parameters
| Name | Argument | Description |
|---|---|---|
| AdminPassword | <SecureString> | Allows the IT administrator to specify the new admin password for the dock to use. Please make sure the password is at least 6 characters long and not more than 32 characters long. |
| CurrentPassword | <SecureString> | Allows the IT administrator to specify the current admin password for the dock if there is one set. If the dock currently has an admin password set and this parameter is not provided, the command will fail. Likewise, if a current password is provided but it is incorrect or there is no dock password set, the command will fail. |
Examples
PS C:\> $plainString = "mySecretPassword123"
PS C:\> $secureString = ConvertTo-SecureString -String $plainString -AsPlainText -Force
PS C:\> Set-HPDockAdminPassword -AdminPassword $secureString