Set-WssPasswordPolicy

Set-WssPasswordPolicy

Modifies password policy requirements for the server.

Syntax

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

Detailed Description

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

Parameters

-PasswordNeverExpire

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

-Strength<WssPasswordPolicy>

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

<CommonParameters>

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).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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