Set-WssPasswordPolicy
Modifies password policy requirements for the server.
Syntax
Set-WssPasswordPolicy
[-Strength] <WssPasswordPolicy>
[-PasswordNeverExpire]
[<CommonParameters>]
Description
The Set-WssPasswordPolicy cmdlet modifies password policy requirements for the server.
Examples
Example 1: Modify the password policy
PS C:\> Set-WssPasswordPolicy -Strength Strong -PasswordNeverExpire
This command changes the password policy to require Strong passwords. Passwords never expire.
1:
PS C:\>
Parameters
-PasswordNeverExpire
Indicates that passwords never expire. If you do not specify this parameter, passwords expire after 180 days.
Type: | SwitchParameter |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Strength
Specifies the password strength for the server. The acceptable values for this parameter are:
- 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.
Type: | WssPasswordPolicy |
Accepted values: | Weak, Medium, MediumStrong, Strong |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |