New-CMExchangeServerConnectorAccessRule

New-CMExchangeServerConnectorAccessRule

Configures access settings for a mobile device that uses a Microsoft Exchange Server connector.

Syntax

Parameter Set: New
New-CMExchangeServerConnectorAccessRule -AccessLevel <AccessLevelType> {Allow | Block | Quarantine} -Device <DeviceType> {DeviceModel | DeviceType} -RuleName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-CMExchangeServerConnectorAccessRule cmdlet configures access settings for a mobile device that uses a Microsoft Exchange Server connector.

Parameters

-AccessLevel<AccessLevelType>

Specifies the type of access for the mobile device. The acceptable values for this parameter are:

-- Allow
-- Block
-- Quarantine

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Device<DeviceType>

Specifies the device type of the mobile device. The acceptable values for this parameter are:

-- DeviceModel
-- DeviceType

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-RuleName<String>

Specifies a name for the access rule.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

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

PS C:\> New-CMExchangeServerConnectorAccessRule -RuleName "AccessRule01" -AccessLevel Allow -Device DeviceType

New-CMExchangeServerConnectorApplicationSetting

New-CMExchangeServerConnectorEmailManagementSetting

New-CMExchangeServerConnectorGeneralSetting

New-CMExchangeServerConnectorPasswordSetting

New-CMExchangeServerConnectorSecuritySetting