New-CMExchangeConnectorPasswordSetting
Add new password settings to a Exchange Server connector in Configuration Manager.
Syntax
New-CMExchangeConnectorPasswordSetting
[-AllowSimplePassword <Boolean>]
[-MaximumIdleTimeMins <Int32>]
[-MinimumComplexChar <Int32>]
[-MinimumPasswordLength <Int32>]
[-PasswordComplexity <PasswordComplexityType>]
-PasswordEnabled <Boolean>
[-PasswordExpiration <Int32>]
[-PasswordHistory <Int32>]
[-PasswordRecovery <Boolean>]
[-WipeAfterFailedAttempt <Int32>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The New-CMExchangeConnectorPasswordSetting cmdlet adds new password settings to a Microsoft Exchange Server connector in Configuration Manager. An Exchange Server connector in Configuration Manager manages mobile devices that connect to an on-premise or online Exchange Server by using the Exchange ActiveSync protocol.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Specify password settings for an Exchange Server connector
This command sets these password-related options for an Exchange Server connector:
Requires the user to set a password on the mobile device.
Requires the password to have at least eight characters or digits.
Causes the password to expire after 51 days.
Requires 21 password changes before the user can reuse an earlier password.
Wipes data from the mobile device after six failed attempts to change the password.
Allows 41 minutes to elapse before the mobile device locks itself.
Requires an alphanumeric password.
Allows passwords to be simple.
Allows users to recover missing passwords from the mobile device.
New-CMExchangeConnectorPasswordSetting -PasswordEnabled $True -MinimumPasswordLength 8 -PasswordExpiration 51 -PasswordHistory 21 -WipeAfterFailedAttempt 6 -MaximumIdleTimeMinutes 41 -PasswordComplexity Strong -MinimumComplexChar 3 -AllowSimplePassword $True -PasswordRecovery $True
Parameters
-AllowSimplePassword
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumIdleTimeMins
Type: | Int32 |
Aliases: | MaximumIdleTimeMinutes |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MinimumComplexChar
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MinimumPasswordLength
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PasswordComplexity
Type: | PasswordComplexityType |
Accepted values: | Pin, Strong |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PasswordEnabled
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PasswordExpiration
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PasswordHistory
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PasswordRecovery
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WipeAfterFailedAttempt
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.ConfigurationManagement.PowerShell.Cmdlets.HS.ExchangeConnectorPasswordSetting
Notes
Cmdlet aliases: New-CMExchangeServerConnectorPasswordSetting