Set-WssPasswordPolicy

Set-WssPasswordPolicy

Modifies password policy requirements for the server.

構文

Parameter Set: Default
Set-WssPasswordPolicy [-Strength] <WssPasswordPolicy> {Medium | MediumStrong | Strong | Weak} [[-PasswordNeverExpire]] [ <CommonParameters>]

詳細説明

The Set-WssPasswordPolicy cmdlet modifies password policy requirements for the server.

パラメーター

-PasswordNeverExpire

Indicates that passwords never expire. If you do not specify this parameter, passwords expire after 180 days.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Strength<WssPasswordPolicy>

Specifies the password strength for the server. このパラメーターに対して使用できる値:

-- Weak. Passwords are not blank.
-- Medium. Passwords must contain at least five characters.
-- MediumStrong. Passwords must contain at least five characters, and must contain at least three of the following categories: uppercase letters, lowercase letters, numbers, and symbols.
-- Strong. Passwords must contain at least seven characters, and must contain at least three of the following categories: uppercase letters, lowercase letters, numbers, and symbols.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Modify the password policy

This command changes the password policy to require Strong passwords. Passwords never expire.

PS C:\> Set-WssPasswordPolicy -Strength Strong -PasswordNeverExpire
PS C:\> 

関連トピック

Get-WssPasswordPolicy