Set-HcsPassword
Sets the password for a user account.
Syntax
Set-HcsPassword
-User <HcsUser>
-Password <SecureString>
[-Force]
[<CommonParameters>]
Description
The Set-HcsPassword cmdlet sets the password for a specified user account.
The password must meet the following requirements for password complexity:
- SSAdmin. Minimum of eight characters and maximum of 15 characters. Use this type of account to access Windows PowerShell Interface for StorSimple.
- SnapShotManager. Minimum of 14 characters and maximum of 15 characters. Use this type of account to access for StorSimple SnapShot Manager.
Passwords must contain characters from at least three of the following classes:
- English upper case letters: A, B, C, ...Z
- English lower case letters: a, b, c, ...z
- Westernized Arabic numerals: 0, 1, 2, ...9
- Non-alphanumeric special characters, such as ?, !, %, $, #
Examples
Example 1: Set a password for a user
PS C:\> Set-HcsPassword -User ApplicationHost
WARNING: A script or application on the 10.111.172.232 remote computer is
sending a prompt request. When prompted, enter sensitive information such as
credentials or password only if you trust the remote computer and the
application or script requesting it.
cmdlet Set-HcsPassword at command pipeline position 1
Supply values for the following parameters:
Password: ***************
WARNING: A script or application on the 10.111.172.232 remote computer is
sending a prompt request. When prompted, enter sensitive information such as
credentials or password only if you trust the remote computer and the
application or script requesting it.
Confirm Password: ***************
Changing your application host password will interrupt connectivity from the
StorSimple Snapshot Manager to this device until you update the StorSimple
Snapshot Manager with the new application host password. Are you sure you wish
to continue?
[Y] Yes [N] No [?] Help (default is "Y"): y
This command sets the password that StorSimple SnapShot Manager uses to connect to the device.
Parameters
-Force
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Password
Specifies a password.
Specify a secure string for this parameter.
To obtain a secure string, use the ConvertTo-SecureStringhttp://go.microsoft.com/fwlink/?LinkID=113291 cmdlet.
For more information, type Get-Help ConvertTo-SecureString
.
The cmdlet sets the password that you specify.
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-User
Specifies the user name for which to change the password.
Type: | HcsUser |
Accepted values: | SSAdmin, SnapshotManager |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
This cmdlet does not generate any output.
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för