New-CMExchangeConnectorAccessRule
Configure access settings for a mobile device that uses a Microsoft Exchange Server connector.
Syntax
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
Type: | AccessLevelType |
Accepted values: | Allow, Block, Quarantine |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Device
Type: | DeviceType |
Accepted values: | DeviceType, DeviceModel |
Position: | Named |
Default value: | None |
Required: | True |
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 |
-RuleName
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.ConfigurationManagement.PowerShell.Cmdlets.HS.ExchangeConnectorAccessRule
Notes
Cmdlet aliases: New-CMExchangeServerConnectorAccessRule