Set-HcsPassword
Set-HcsPassword
Sets the password for a user account.
構文
Parameter Set: Default
Set-HcsPassword -Password <SecureString> -User <HcsUser> [-Force] [ <CommonParameters>]
詳細説明
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 ?, !, %, $, #
パラメーター
-Force
ユーザーの確認を求めずにコマンドを強制的に実行します。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-User<HcsUser>
Specifies the user name for which to change the password.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- This cmdlet does not generate any output.
例
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