New-CMExchangeConnectorAccessRule
Configure access settings for a mobile device that uses a Microsoft Exchange Server connector.
Syntax
Default (Default)
New-CMExchangeConnectorAccessRule
-AccessLevel <AccessLevelType>
-Device <DeviceType>
-RuleName <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The New-CMExchangeConnectorAccessRule cmdlet configures access settings for a mobile device that uses a Microsoft Exchange Server connector.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.
Examples
Example 1: Configure email management settings for a mobile device
This command creates an access rule for a device type named AccessRule01 that has the Allow access level.
New-CMExchangeConnectorAccessRule -RuleName "AccessRule01" -AccessLevel Allow -Device DeviceType
Parameters
-AccessLevel
The New-CMExchangeConnectorAccessRule cmdlet configures access settings for a mobile device that uses a Microsoft Exchange Server connector.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.
Parameter properties
| Type: | AccessLevelType |
| Default value: | None |
| Accepted values: | Allow, Block, Quarantine |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Device
The New-CMExchangeConnectorAccessRule cmdlet configures access settings for a mobile device that uses a Microsoft Exchange Server connector.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.
Parameter properties
| Type: | DeviceType |
| Default value: | None |
| Accepted values: | DeviceType, DeviceModel |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-RuleName
The New-CMExchangeConnectorAccessRule cmdlet configures access settings for a mobile device that uses a Microsoft Exchange Server connector.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
Outputs
Microsoft.ConfigurationManagement.PowerShell.Cmdlets.HS.ExchangeConnectorAccessRule
Notes
Cmdlet aliases: New-CMExchangeServerConnectorAccessRule