Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Indicates that passwords never expire. If you do not specify this parameter, passwords expire after 180 days.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
This command changes the password policy to require Strong passwords. Passwords never expire.
PS C:\> Set-WssPasswordPolicy -Strength Strong -PasswordNeverExpire
PS C:\>