New-CMExchangeConnectorAccessRule
为使用 Microsoft Exchange Server 连接器的移动设备配置访问设置。
语法
New-CMExchangeConnectorAccessRule
-AccessLevel <AccessLevelType>
-Device <DeviceType>
-RuleName <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
说明
New-CMExchangeConnectorAccessRule cmdlet 为使用 Microsoft Exchange Server 连接器的移动设备配置访问设置。
注意
从 Configuration Manager 站点驱动器运行 Configuration Manager cmdlet,例如 PS XYZ:\>。 有关详细信息,请参阅 入门。
示例
示例 1:为移动设备配置电子邮件管理设置
此命令为具有“允许访问”级别的名为 AccessRule01 的设备类型创建访问规则。
New-CMExchangeConnectorAccessRule -RuleName "AccessRule01" -AccessLevel Allow -Device DeviceType
参数
-AccessLevel
| 类型: | AccessLevelType |
| 接受的值: | Allow, Block, Quarantine |
| Position: | Named |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | False |
| 接受通配符: | False |
-Device
| 类型: | DeviceType |
| 接受的值: | DeviceType, DeviceModel |
| Position: | Named |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | False |
| 接受通配符: | False |
-DisableWildcardHandling
此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-ForceWildcardHandling
此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-RuleName
| 类型: | String |
| Position: | Named |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | False |
| 接受通配符: | False |
输入
None
输出
Microsoft.ConfigurationManagement.PowerShell.Cmdlets.HS.ExchangeConnectorAccessRule
备注
Cmdlet 别名: New-CMExchangeServerConnectorAccessRule