Share via


Set-HcsPassword

Set-HcsPassword

Sets the password for a user account.

Syntax

Parameter Set: Default
Set-HcsPassword -Password <SecureString> -User <HcsUser> [-Force] [ <CommonParameters>]

Detaillierte Beschreibung

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 ?, !, %, $, #

Parameter

-Force

Erzwingt, dass der Befehl ohne Benutzerbestätigung ausgeführt wird.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Password<SecureString>

Specifies a password. Specify a secure string for this parameter. To obtain a secure string, use the ConvertTo-SecureString cmdlet. For more information, type Get-Help ConvertTo-SecureString. The cmdlet sets the password that you specify.

Aliasse

Keiner

Erforderlich?

true

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-User<HcsUser>

Specifies the user name for which to change the password.

Aliasse

Keiner

Erforderlich?

true

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • This cmdlet does not generate any output.

Beispiele

Example 1: Set a password for a user

This command sets the password that StorSimple SnapShot Manager uses to connect to the device.

PS C:\> Set-HcsPassword -User ApplicationHost

Verwandte Themen

ConvertTo-SecureString